Replies: 1 comment
-
It's available since 0.2.0, #3.
I'm still unsure whether to make On one hand,
This is a bit out of scope and better suited for the developer’s code rather than the library. But if there’s enough demand, I’m happy to consider adding support for it.
You can call the validation methods inside the new React 19 |
Beta Was this translation helpful? Give feedback.
-
I would like to bring the following ideas into discussion:
De-contextualizing Entities & Attributes
Currently, entities and attributes use context to pass the builder store instance, which makes it impossible to nest different builders in structures like: A > B > A.
Option to Remove an Entity When Using createEntityComponent
It would be useful to have a .delete() method available in the props passed to a component when using createEntityComponent.
Entity Tree Utilities
I've implemented some utilities myself, but I believe it would be beneficial to have a dedicated package that provides methods for manipulating an entity tree. For example: insert(schema, nodeToAppendTo), remove(startNode, endNode?), replace(newSchema, startNode, endNode?), etc.
Async Validation
The
validate
methods are now async, which makes it really painful to call these methods inside react hook functions, likeuseMemo
oruseState
. What about giving sync alternatives?Beta Was this translation helpful? Give feedback.
All reactions