UNPKG

lingo3d

Version:

Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor

8 lines 333 B
import { useCallback, useSyncExternalStore } from "preact/compat"; export default (getGlobalState) => useSyncExternalStore(useCallback((notify) => { const handle = getGlobalState(notify); return () => { handle.cancel(); }; }, []), useCallback(() => getGlobalState(), [])); //# sourceMappingURL=useSyncState.js.map