What is the current behavior:
When you change the Event provided to useUnit as an argument, the hook returns a stale value.
Please see the reproduction: https://share.effector.dev/jr0mXZYS
What is the expected behavior:
Like useEvent, useUnit should return an up-to-date value with the new callback.
Which versions of effector packages?
master, effector v22.8.5 & effector-react v22.5.1 at the moment of writing
What is the current behavior:
When you change the Event provided to
useUnitas an argument, the hook returns a stale value.Please see the reproduction: https://share.effector.dev/jr0mXZYS
What is the expected behavior:
Like
useEvent,useUnitshould return an up-to-date value with the new callback.Which versions of effector packages?
master,effector v22.8.5&effector-react v22.5.1at the moment of writing