worklet not preventing crash #5948
-
Hello everyone, I've been encountering a crash issue when calling the Here's the scenario:
This leads me to believe that the issue could be related to how I have triple-checked to make sure that there are no violations of the Rules of Hooks, and that the worklet is being used correctly according to the documentation. Could there be something specific about I would appreciate any insights or suggestions on what could be going wrong and how to fix it. Here is a snippet of the code for reference: // Define specific state types for each component type AreaState = { type SpriteState = { type MassState = { }> = { ///processors for components that are required } const useEntityComponentSystems = (): useEntityComponentSystems => {
]);
if (pos.state.y.value + area.state.height.value >= 300) { } else {
///fetch all entities ///fetch entity by name ///fetch processor by name
///check if processor exists within entity
}; ////addComponent
}; ///add entity
///remove component from entity ////create entity
};
}; ////get Entities by required components
};
return { export default useEntityComponentSystems; |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello everyone, I wanted to update you on the issue I was experiencing with the syntax error in my processor update method within my custom React Native Entity Component System. After digging deeper, I realized that the problem was actually due to a missing colon (:) after the update property in my processors' object definitions. |
Beta Was this translation helpful? Give feedback.
Hello everyone,
I wanted to update you on the issue I was experiencing with the syntax error in my processor update method within my custom React Native Entity Component System. After digging deeper, I realized that the problem was actually due to a missing colon (:) after the update property in my processors' object definitions.