easy-peasy
easy-peasy copied to clipboard
Community feedback on `unstable_effectOn`
I'd like to consider moving this API to stable pending feedback from the community.
Also looking to incorporate the work in PR #598
Haven't seen this one. What is the usecase for this, over ActionOn
and ThunkOn
?
Hi,
we used the effectOn for serval months and it worked perfect and was very useful. But a a refactoring of our store, we could not use effectOn due to missing PR #598 It would be great if the PR will be merged and effectOn gets moved to stable.
Haven't seen this one. What is the usecase for this, over
ActionOn
andThunkOn
?
It allows you to track state rather than actions. Which can help avoid cases of having to track multiple actions in the case of ActionOn and ThunkOn.
Is #597 & #596 still an issue?
I think after merging #598 and fixing #597 separately, it will be stable. I didn't notice any other problems than those two and the api itself is really useful. Thanks @ctrlplusb for finding time for this!
Hey, I use unstable_effectOn
in one of my projects, and it's working great! The only downside with it, is it can only track up to 6 states in the store. I've managed to find some workarounds, but it would be great if it could listen to as many states as we want, similar to how thunkOn
can listen to unlimited actions.
Thank you so much for maintaining easy-peasy!
Nice one. Yeah, we can look into that quality of life improvement too. 👍
@tormodAase
The only downside with it, is it can only track up to 6 states in the store. I've managed to find some workarounds, but it would be great if it could listen to as many states as we want, similar to how thunkOn can listen to unlimited actions.
I think this a typescript-only limitation and should be a matter of just updating a few types (namely this type type, which imposes a limitation of six state resolvers on both the unstable_effectOn
and computed
functions, this type, and also this type if we want to address this for computed props as well).
I can open a PR for this if you'd like @ctrlplusb.
The only downside with it, is it can only track up to 6 states in the store.
This is fixed by #787 👍
@jmyrland and @no-stack-dub-sack on fire. 🔥😎
I think after merging #598 and fixing #597 separately, it will be stable. I didn't notice any other problems than those two and the api itself is really useful. Thanks @ctrlplusb for finding time for this!
With #598 merged and #597 fixed by #812, I think we're in pretty good shape here. There are no other open issues related to unstable_effectOn
and no comments in this thread that suggest its not ready to be made stable.
What do you think @ctrlplusb, @jmyrland?
With #598 merged and #597 fixed by #812, I think we're in pretty good shape here. There are no other open issues related to
unstable_effectOn
and no comments in this thread that suggest its not ready to be made stable.What do you think @ctrlplusb, @jmyrland?
I think we're ready for a release soon! 🚀