pmndrs / zustand

🐻 Bear necessities for state management in React
https://zustand-demo.pmnd.rs/
MIT License
46.93k stars 1.45k forks source link

add wrapped store for comfy devtools usage #2669

Closed mikhail-balandin closed 1 month ago

mikhail-balandin commented 1 month ago

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 middleware

Introduced a new function createWrappedStore which conditionally applies the devtools middleware based on the environment (development or production)

vercel[bot] commented 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
codesandbox-ci[bot] commented 1 month ago

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.