You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge values and handlers in fork to single property. Effector can choose between store and effect automatically, so possibly we can merge them to single property.
Pros: easier to use, like useStore and useEvent was merged to useUnit Cons: another breaking change, benefits of merge not obvious, as many people still write useUnit(stores) and useUnit(eventsOrEffect) in two calls to preserve semantic distinction
Not sure which property name could be used and whether we need to go in this direction so I create this issue to remember that we have this option
The text was updated successfully, but these errors were encountered:
Proposal
Merge
values
andhandlers
infork
to single property. Effector can choose between store and effect automatically, so possibly we can merge them to single property.Pros: easier to use, like useStore and useEvent was merged to useUnit
Cons: another breaking change, benefits of merge not obvious, as many people still write useUnit(stores) and useUnit(eventsOrEffect) in two calls to preserve semantic distinction
Not sure which property name could be used and whether we need to go in this direction so I create this issue to remember that we have this option
The text was updated successfully, but these errors were encountered: