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

updated zustand example to 4.3.6, changed out deprecated methods #46911

Merged
merged 4 commits into from Mar 14, 2023

Conversation

Mojtaba-NA
Copy link
Contributor

@Mojtaba-NA Mojtaba-NA commented Mar 8, 2023

updated zustand example to 4.3.6
changed out zustand's deprecated methods (createContext, create)
converted the example to typescript

Why

zustand's example in nextjs repo is for zustand v3 which is quite different to how things are done in v4, it was also in javascript.
back when when I started to use zustand in my nextjs app, this example helped me a lot and now, I wanna do the same for devs that come here to see how they can integrate next and zustand.

Documentation / Examples

[✓] Make sure the linting passes by running pnpm build && pnpm lint
[✓] The "examples guidelines" are followed from our contributing doc

@ijjk ijjk merged commit 2579ad7 into vercel:canary Mar 14, 2023
@Mojtaba-NA Mojtaba-NA deleted the updating-zustand-example branch March 15, 2023 03:41
@Mojtaba-NA Mojtaba-NA restored the updating-zustand-example branch March 15, 2023 03:41
@Mojtaba-NA Mojtaba-NA deleted the updating-zustand-example branch March 15, 2023 03:42
@Mojtaba-NA Mojtaba-NA restored the updating-zustand-example branch March 15, 2023 03:42
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants