Open charkour opened 5 months ago
Wanted to quickly pass by and say thanks for this amazing middleware, very well done and it's about the best documented one out there.
Having the slices usage documented, especially with TS, would be invaluable as it can be a bit difficult to wrap one's head around getting that going, as well as combining with other middlewares. Albeit, the current wrap example is helpful as it hints at how it can be done and is already with TS.
Thanks for the kind words! If you manage to get the slices pattern working with zundo
, please feel free to make a PR. Eventually I'll find some time to add an example myself, but it's difficult to know when I'll be able to.
https://github.com/pmndrs/zustand/blob/main/docs/guides/slices-pattern.md