MCPcopy
hub / github.com/openai/chatkit-js / latestRef

Function latestRef

packages/chatkit-react/src/useStableOptions.test.ts:121–121  ·  view source on GitHub ↗
(current: T)

Source from the content-addressed store, hash-verified

119});
120
121const latestRef = <T>(current: T) => ({ current });
122
123describe('withLatestFunctionWrappers', () => {
124 it('wraps top-level functions and calls the latest version', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected