Doc: Outdated doc #2627
-
Bug DescriptionHello, I am maintaining a middleware that sync tabs and browser windows using the Broadcast Channel, however someone asked me to make some of the internal properties accessible to the user. I still looked at what the other does, but I'm getting an issue I can't resolve about the types. Argument of type 'StateCreator<CountStore, [], [["shared", StoreApi<SharedState>]]>' is not assignable to parameter of type 'StateCreator<CountStore, [], [never, unknown][]>'. Is it possible to update the docs to match the current Zustand version? Reproduction Link |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
If I understand it correctly, what's deprecating is |
Beta Was this translation helpful? Give feedback.
Thank you!
It seems that the issue comes from somewhere else...
When bundling with
npm run build
and then importing it, I've the type issue.