Some comments and cleanup

This commit is contained in:
Eric Bailey
2026-01-21 11:00:48 -06:00
parent bdfbbef9ce
commit 71c6771e87
8 changed files with 69 additions and 16 deletions
+4
View File
@@ -4,6 +4,10 @@ import {BSKY_SERVICE} from '#/lib/constants'
import {type SessionAccount} from '#/state/session'
import {type MergeableMetadata, type SessionMetadata} from '#/analytics/types'
/**
* Thin `useMemo` wrapper that marks the metadata as memoized and provides a
* type guard.
*/
export function useMeta(metadata: MergeableMetadata) {
const m = useMemo(() => metadata, [metadata])
// @ts-ignore