-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Currently use-statechart can only start the statechart colocated in the component where it is used, under the :statechart key.
The ui-routes namespace on the otherhand uses the statechart under the ro/statechart key.
I'd suggest using a consistant key for both, but I'm also wondering about the current use-statechart implementation, here are my suggestions:
- it should not provide
configandlocal-statebecause those feel like anti-patterns in the use of statecharts, instead if a user wants the statechart to have an effect on the UI it should be through the:actor/componentthat is automatically set, and the props can then be added to the component's query as commonly done withui/propsin fulcro configandlocal-statemay still be returned via adebug?optionstatechartshould be an option (which would eliminate the need to lookup:statechartoption of the component and allow multiple different statecharts to be used)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels