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
{{ message }}
This repository has been archived by the owner on Feb 3, 2020. It is now read-only.
It's entirely possible that I'm just not understanding some part of the API, but I think there is an issue with the action handler working on a falsey current state (e.g. null or false). I think it might be the logic that returns the initial/default state when the current state is undefined being a little over eager.
This has to do with being based around immer. Since the conversion to createDraft/finishDraft in v3.0.0 and the work done in #7 it should be easier to support primitive state.
It's entirely possible that I'm just not understanding some part of the API, but I think there is an issue with the action handler working on a falsey current state (e.g.
null
orfalse
). I think it might be the logic that returns the initial/default state when the current state isundefined
being a little over eager.e.g.
If you think this could be a bug too, I would be happy to submit a pull request.
The text was updated successfully, but these errors were encountered: