Open pietrovismara opened 10 months ago
When I run this code:
const world = createWorld({}, 1e8); const Empty = defineComponent({}); registerComponents(world, [Empty]); const query = defineQuery([Empty]); // bitecs throws here const deser = pipe(query, defineSerializer([Changed(Empty)]));
defineSerializer throws:
const shadowStore = store[$parentArray].slice(0); ^ TypeError: Cannot read properties of undefined (reading 'slice') at createShadow (file:///home/dist/index.js:75:45)
Possibly related to https://github.com/NateTheGreatt/bitECS/issues/71 ?
When I run this code:
defineSerializer throws: