UNPKG

lingo3d

Version:

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

15 lines 520 B
import store, { createEffect } from "@lincode/reactivity"; import { getGameGraph } from "./useGameGraph"; const [setGameGraphData, getGameGraphData] = store([undefined]); export { getGameGraphData }; createEffect(() => { const gameGraph = getGameGraph(); if (!gameGraph) return; const handle = gameGraph.gameGraphDataState.get(setGameGraphData); return () => { handle.cancel(); setGameGraphData([undefined]); }; }, [getGameGraph]); //# sourceMappingURL=useGameGraphData.js.map