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
I'm not sure if this restriction is good.
Honestly, if time machines existed, I'd probably go back and remove all dot methods from effector units, instead make only operators (like map(unit, data => ...))
To make it more consistent (everything through operators rather than switching between two notations)
To have more control over codebase in terms of parsing (e.g. babel can always check if map() is imported from effector, but you have no guarantee that store in store.map is actually store). As I remember, @zerobias pointed that out as well
In the example above, sample might be verbose but you don't need to rewrite the whole thing when you need to add store (you just add source instead of rewriting it)
Speaking of this - I'd ban forward({ from, to }) operator, and forced sample({ clock, target }) instead. The only problem is that forward has different execution priority rather than sample
I found such code:
In my opinion, it should be rewritten in this way:
The text was updated successfully, but these errors were encountered: