Danilo Britto
6422fa8898
Refactor useBoundStore and useLocalAndUrlStore ( #3277 )
2025-10-28 21:25:41 -05:00
Danilo Britto
4269eeef80
Remove codesandbox refs ( #3265 )
2025-10-17 16:25:20 -05:00
Danilo Britto
60364224be
docs: remove codesandbox refs ( #3264 )
...
* Remove codesandbox refs
Updated section title and modified demo links.
* Remove codesandbox refs
* Remove codesandbox refs
* Remove codesandbox refs
* Reorganize demo links in testing documentation
Moved demo links to a new section for better organization.
* Update demo links format in immer-middleware.md
* feat: update format
2025-10-17 09:27:15 -05:00
Danilo Britto
a5ffe1b99b
Update connect-to-state-with-url-hash.md ( #3263 )
2025-10-17 08:59:04 -05:00
Danilo Britto
d5105b1e13
Update demo link and section title in guide ( #3262 )
2025-10-17 07:42:04 -05:00
Danilo Britto
95850110ab
docs: update map and set guide ( #3258 )
...
* Enhance Maps and Sets usage documentation in Zustand
Expanded the documentation on using Maps and Sets in Zustand, including guidelines for reading and updating these data structures. Added examples for creating new instances and explained the importance of reference changes for state updates.
* feat: update format
2025-10-12 07:59:26 -05:00
Ehsan Aslani
20ad3f8891
Add multiplayer to third-party libraries ( #3241 )
...
* docs: Add multiplayer middleware to third-party libraries
* Update docs/integrations/third-party-libraries.md
---------
Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2025-09-30 10:26:09 +09:00
Ushran Gouhar
56a39b6a0f
Update hook name from useStore to useBear ( #3233 )
...
Zustand already provides a `useStore` hook, and reusing the same name for a custom hook could lead to confusion if someone accidentally imports the wrong one. To avoid this, I’ve renamed the custom hook to `useBear`. The name is short, memorable, and aligns with Zustand’s playful style.
2025-09-12 17:30:50 +09:00
Dan Tonon
85e3f2929a
Add new Zustand third-party links for zustand-create-setter-fn and zustand-utils ( #3222 )
...
* Add new Zustand third-party links for `zustand-create-setter-fn` and `zustand-utils`
* Apply suggestions from code review
---------
Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2025-08-28 11:18:37 +09:00
SungHyun Kim
f831bc8d71
fix broken links in the toc of create-store.md ( #3207 )
2025-08-09 10:04:58 -05:00
Danilo Britto
41fed0fe6f
docs: update how to reset state guide ( #3187 )
2025-07-20 09:26:07 -05:00
Danilo Britto
aba78319bb
Update use-store-with-equality-fn.md ( #3185 )
2025-07-19 06:45:34 -05:00
Malte Hecht
2879505e39
fix: broken link to ssr and hydration ( #3183 )
2025-07-16 09:18:27 -05:00
Danilo Britto
84b112e4a2
docs: update redux api docs ( #3180 )
...
* Update redux.md
* Update redux.md
2025-07-14 10:39:56 -05:00
Danilo Britto
4ad3977b38
Update redux.md ( #3176 )
2025-07-13 02:32:01 -05:00
soyboi
56909808fa
docs: add currying in for createStore ( #3171 )
2025-07-09 08:51:58 -05:00
Henry8192
149c286342
remove redundant dash in persist parameters ( #3170 )
2025-07-08 08:07:57 +09:00
Steven Wexler
c61999bacd
docs: fix getBoth return type ( #3167 )
2025-07-02 19:54:08 -05:00
Gabriel Saunders
747e97f334
Zustorm ( #3166 )
...
* docs: added zustorm to 3rd party
* docs: update zustorm description
2025-07-02 23:59:37 +09:00
clonemycode
9d58820318
chore: fix some typos in comment ( #3139 )
...
Signed-off-by: clonemycode <clonecode@aliyun.com>
2025-06-03 10:05:54 +09:00
csark0812
c3dceea0e1
Add zustand-expo-devtools to third-party middleware list ( #3135 )
...
* Add zustand-expo-devtools to third-party middleware list
Wrote a dev plugin that allows for full connection between zustand state and redux devtools!
* ordered alphabetically
2025-05-25 22:49:21 +09:00
Ali Mert Çakar
670b60e19a
feat(devtool): inferred action type ( #2987 )
...
* feat(devtools middleware) add automatic action name finding
* docs(readme) add inferActionName example
* feat: update readmes
* feat: update devtools middleware and tests
* feat: remove inferActionName
---------
Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
Co-authored-by: Danilo Britto <dbritto.dev@gmail.com>
2025-05-21 20:12:14 +09:00
Hong-Kuan Wu
b4177b3172
feat: add devtools.cleanup() method ( #3111 )
...
* feat(devtools): add cleanup method
* docs(devtools): add cleanup section
* reduce lines
* test(devtools): test if the connection removed after cleanup
---------
Co-authored-by: daishi <daishi@axlight.com>
Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2025-05-21 09:49:59 +09:00
Danilo Britto
a56a3e4bde
feat(vanilla): update shallow compare function and tests ( #3108 )
...
* feat(vanilla): update shallow compare function and tests
* prefer Object.getPrototypeOf
* docs: update shallow docs
* feat: minor fixes
---------
Co-authored-by: daishi <daishi@axlight.com>
Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2025-05-21 09:46:37 +09:00
Danilo Britto
14feb61c7e
Update use-store-with-equality-fn.md ( #3119 )
2025-05-12 16:54:39 -05:00
wingedotter5
2fcfc30530
Fix typo ( #3115 )
2025-05-10 10:26:31 -05:00
Danilo Britto
36627acb60
Update persisting-store-data.md ( #3110 )
2025-05-06 14:32:23 -05:00
Danilo Britto
48985a4cc2
docs: general docs improvements ( #3102 )
...
* feat: general docs improvements
* Update docs/guides/testing.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-04-29 11:15:42 -05:00
Luke
bd58db0faf
docs: fix the usage error of setPosition ( #3100 )
2025-04-28 23:06:03 -05:00
Viktor Persson
67673947d6
docs: Prefer const to let (auto generating selectors) ( #3094 )
2025-04-25 20:25:37 +09:00
Danilo Britto
21fc1b1522
docs: update createWithEqualityFn and useStoreWithEqualityFn docs ( #3084 )
...
* Update create-with-equality-fn.md
* Update use-store-with-equality-fn.md
2025-04-15 17:10:09 -05:00
Emmanuel Oduntan
534451ce25
docs: update tutorial ( #3080 )
...
replaced setSquares with onPlay in the handleClick function of the Board component
2025-04-11 16:23:46 -05:00
jroitgrund
17e281fd75
docs: strict null check in createContext example ( #2995 )
...
* docs: prefer useState in createContext example
Both useState and useRef are correct in practice: useState will only render once since we never set the state after initializion, and useRef is safe to use since the component never needs to rerender when the ref value changes.
However, lint rules will flag useRef as a mistake, because we are passing a ref value to a child component, which in general can cause stale components since changing refs doesn't trigger re-renders.
* formatting
* explicit null check
2025-03-20 21:23:42 +09:00
Mathilda Grace
90f8d592d4
Update Next.js guide to have explicitly nullable useRef type argument ( #3053 )
...
* Update nextjs.md with nullable `storeRef`
* Update other example in nextjs.md
* Apply suggestions from code review
---------
Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2025-03-15 08:19:59 +09:00
goosewobbler
3089fdc435
docs: remove zutron, add zubridge ( #3047 )
...
* docs: remove zutron, add zubridge
* docs: fix formatting
2025-03-12 21:54:00 +09:00
Shashikant Yadav
681036c319
Update introduction.md ( #3045 )
2025-03-12 06:28:00 -05:00
조우혁
9ba6a63799
docs: fix typos ( #3042 )
2025-03-09 19:10:53 -05:00
Koo Sangmo
a90981afb5
docs: update vitest config to match vitest docs ( #3037 )
...
* Update testing.md
in vite,
mergeConfig accepts only config in object form. If you have a config in callback form, you should call it before passing into mergeConfig.
You can use the defineConfig helper to merge a config in callback form with another config:
https://vite.dev/guide/api-javascript.html#mergeconfig
* Fix formatting
---------
Co-authored-by: Danilo Britto <dbritto.dev@gmail.com>
2025-03-03 07:46:37 -05:00
Gabriel Saunders
bc60812e33
docs: added zustand-namespaces to 3rd party ( #3028 )
2025-02-24 17:14:19 +09:00
Gabriel Saunders
718c846c03
docs: added zustand-multi-persist to 3rd party ( #3011 )
2025-02-15 14:37:22 +09:00
Paul Schoen
abc51900c9
doc: Added use-post-message-ts to third party ( #3008 )
2025-02-13 12:08:07 +09:00
Loco
67371154ed
Update use-shallow.md ( #3004 )
2025-02-10 06:53:49 -05:00
Mohit Tokas
57608bbbdf
Update nextjs.md ( #2998 )
...
* Update nextjs.md
add mandatory argument for useRef
* Update testing.md
added initialValue for useRef
2025-02-08 20:49:57 +09:00
Andrii Oriekhov
c96cf83663
fix devtools example ( #3002 )
2025-02-08 08:28:39 +09:00
Daniil Chervyakov
c3287fa89d
docs: fix typo in type ( #3001 )
2025-02-07 12:54:54 +09:00
이선재
65402b01d6
docs: Remove unnecessary void operator ( #2994 )
2025-02-04 19:37:36 +09:00
sidahmedabdelillah
bc3e94e991
fixed error in persist example and added typescript ( #2978 )
...
* fixed error in persist example and added typescript
* chore: formatted code
---------
Co-authored-by: sidahmedabdelillah <s_bentegar@gmail.com>
2025-01-28 07:59:26 -05:00
Danilo Britto
ef0c619fac
chore(docs): update tutorial tic tac toe ( #2969 )
...
* chore(docs): update tutorial tic tac toe
* chore(docs): update tutorial tic tac toe
* chore(docs): minor changes
2025-01-21 11:06:48 -05:00
SAMIR HEMBROM
37e1e3f193
docs(tutorial-tic-tac-toe.md): fix code to prevent infinite loops ( #2963 )
2025-01-16 22:45:58 +09:00
Ziad Beyens
adf084f85b
docs ( #2958 )
2025-01-15 18:33:23 +09:00