UNPKG

lingo3d

Version:

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

13 lines 523 B
import store, { createEffect } from "@lincode/reactivity"; import { addDisposeStateSystem, deleteDisposeStateSystem } from "../systems/eventSystems/disposeStateSystem"; export const [setGameGraph, getGameGraph] = store(undefined); createEffect(() => { const gameGraph = getGameGraph(); if (!gameGraph) return; addDisposeStateSystem(gameGraph, { setState: setGameGraph }); return () => { deleteDisposeStateSystem(gameGraph); }; }, [getGameGraph]); //# sourceMappingURL=useGameGraph.js.map