MCPcopy Create free account
hub / github.com/block/buzz / useLatestRef

Function useLatestRef

desktop/src/shared/ui/markdown.tsx:105–109  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

103>(undefined);
104
105function useLatestRef<T>(value: T) {
106 const ref = React.useRef(value);
107 ref.current = value;
108 return ref;
109}
110
111function MarkdownVideoPlayer({
112 alt,

Callers 1

MarkdownInnerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected