Closed mikhail-balandin closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
zustand-demo | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 8, 2024 4:50am |
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Added wrapped store func to enabling devtools to each store easily
These changes allow for more flexible configuration of devtools usage without the need to manually connect them in each store.
Defined a new type WithDevtools
which extends StateCreator to include the devtools middlewareIntroduced a new function createWrappedStore which conditionally applies the devtools middleware based on the environment (development or production)