Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add demo for using slices #176

Open
charkour opened this issue Apr 24, 2024 · 2 comments
Open

Add demo for using slices #176

charkour opened this issue Apr 24, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@charkour
Copy link
Owner

https://github.com/pmndrs/zustand/blob/main/docs/guides/slices-pattern.md

@charkour charkour added the documentation Improvements or additions to documentation label May 9, 2024
@MNeverOff
Copy link

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.

@charkour
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants