UNPKG

@playcanvas/react

Version:

A React renderer for PlayCanvas – build interactive 3D applications using React's declarative paradigm.

15 lines 402 B
// Potentially store multiple apps keyed by an ID or fiberRoot const storeMap = new Map(); export function createStoreForApp(app) { return { app }; } export function registerStore(appId, store) { storeMap.set(appId, store); } export function getStore(appId) { return storeMap.get(appId); } export function removeStore(appId) { storeMap.delete(appId); } //# sourceMappingURL=store.js.map