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 am not sure if this extension is still being maintained, but thank you for your hard work on making this. An extension like this is exactly what I need to make zustand a real contender with redux and redux-devtools.
One thing I notice is that zukeeper only seems to pick up changes that are created by a set function call. I.e. in the example:
If called, the increasePopulation or removeAllBears register in the devtools and we see the change. But another lesser known feature of a zustand store is the setState function. For example:
// in some comonent<buttononClick={()=>{useBearStore.setState(prev=>({bears: prev.bears+1}));}}>
Increment
</button>
This is also perfectly valid zustand code, which accomplishes the same thing as increasePopulation. While its probably less "redux-like" to set state like this (as opposed to with a named setter function), zukeeper does not register changes made to zustand state if done via the .setState call.
I'm not sure if this would be hard to implement, but its definitely on my request list and probably would be helpful to others also.
Also, I'm seeing alot of the bugs being talked about in the other issues as well. @stphnl@ctolmsted@Santi-Lorenzo@georgevaz@meg-schneider if you guys are still maintaining this, awesome, thank you. If not, it might be nice for you to archive this or mention that you're not longer maintaining it so that we issue-loggers can accept it as is or choose another tool.
Thanks again!
The text was updated successfully, but these errors were encountered:
Hi zukeeper team,
I am not sure if this extension is still being maintained, but thank you for your hard work on making this. An extension like this is exactly what I need to make zustand a real contender with redux and redux-devtools.
One thing I notice is that zukeeper only seems to pick up changes that are created by a
set
function call. I.e. in the example:If called, the
increasePopulation
orremoveAllBears
register in the devtools and we see the change. But another lesser known feature of a zustand store is thesetState
function. For example:This is also perfectly valid zustand code, which accomplishes the same thing as
increasePopulation
. While its probably less "redux-like" to set state like this (as opposed to with a named setter function), zukeeper does not register changes made to zustand state if done via the.setState
call.I'm not sure if this would be hard to implement, but its definitely on my request list and probably would be helpful to others also.
Also, I'm seeing alot of the bugs being talked about in the other issues as well. @stphnl @ctolmsted @Santi-Lorenzo @georgevaz @meg-schneider if you guys are still maintaining this, awesome, thank you. If not, it might be nice for you to archive this or mention that you're not longer maintaining it so that we issue-loggers can accept it as is or choose another tool.
Thanks again!
The text was updated successfully, but these errors were encountered: