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

Added slices pattern example #194

Merged
merged 3 commits into from
Jan 17, 2025
Merged

Added slices pattern example #194

merged 3 commits into from
Jan 17, 2025

Conversation

mneveroff
Copy link
Contributor

In an effort to close #176

I tried to base my example on an already existing https://github.com/charkour/zundo/blob/65a1c99d933d3ee6687b7d3e88efc36e4dee508f/examples/web/pages/separate.tsx, but had to add useShallow to prevent circular re-renders.

Updated the readme accordingly with a codesandbox link, let me know if other changes are needed.

@charkour charkour self-assigned this Jan 17, 2025
Copy link
Owner

@charkour charkour left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This look great, thank you for the contribution!

@charkour charkour merged commit 2c2494d into charkour:main Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add demo for using slices
2 participants