@fishjam-cloud/react-client
Version:
React client library for Fishjam
8 lines • 451 B
TypeScript
/**
* Returns a stable function reference whose body always reads the latest
* closure values. Use when a method needs to be called from effects or
* captured by consumers without being memoized against changing state
* (peerStatus, deviceTrack, etc.) in its dep array.
*/
export declare const useCurrentCallback: <Args extends unknown[], R>(handler: (...args: Args) => R) => (...args: Args) => R;
//# sourceMappingURL=useCurrentCallback.d.ts.map