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
HoberMin
2fbb477508
docs(create-with-equality-fn.md): fix typos in event handler type definitions ( #2947 )
2025-01-08 07:49:47 -05:00
Mordechai Dror
d2ac8205ec
feat(types): Make ExtractState public ( #2935 )
...
* make ExtractState public and move it to vanilla
* add docs on the matter
* Update vanilla.ts
---------
Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2025-01-07 22:57:18 +09:00
HoberMin
929b547054
docs(create-store.md): fix incorrect usage of create function in example ( #2940 )
2025-01-07 09:14:08 +09:00
HoberMin
efaf416de4
docs(create.md): fix state selector syntax in troubleshooting example ( #2938 )
2025-01-06 07:14:27 -05:00
𝑾𝒖𝒙𝒉
a958de910f
docs: typo & improve ( #2891 )
...
* chore: typo
* docs: update
2024-12-10 08:48:39 -05:00
Atticus White
19cb8797bd
Update devtools.md ( #2883 )
2024-12-06 14:53:22 +09:00
daishi
5ed67ec1a9
chore: remove single quote
2024-11-29 22:26:26 +09:00
marcomendoza
3a7a7fb221
Fix migrating to v5 doc ( #2874 )
...
Replace middlware with middleware in md file
2024-11-29 10:49:39 +09:00
Alexander Mordvinov
9281ec1990
fix hydrateRoot args order ( #2869 )
2024-11-26 16:45:35 -05:00
Facundo J Gonzalez
f540ca8294
chore(docs): Fix the link to devtools ( #2861 )
2024-11-21 09:14:02 +09:00
Charles Kornoelje
7980a7b9cb
match the typescript docs ( #2856 )
2024-11-18 08:28:55 +09:00
Minsup Lee
15eaeb7aad
chore(docs): fix typo ( #2847 )
2024-11-10 10:42:32 -05:00
ytraddan
9782058029
docs: fix typo in tutorial-tic-tac-toe.md ( #2836 )
2024-11-05 11:30:26 -05:00
ennjin
7fcd59b10d
chore: update third-party-libraries.md ( #2834 )
2024-11-05 16:46:01 +09:00
Danilo Britto
795528efb5
fix(doc): update tutorial guide and fix doc build ( #2835 )
...
* fix(doc): update tutorial guide
* fix(doc): update tutorial guide
2024-11-04 19:43:35 -05:00
Danilo Britto
bf4bcf20c5
chore(docs): update docs content ( #2831 )
...
* chore(docs): update docs content
* chore(docs): update types
* chore: update import types
2024-11-05 09:27:34 +09:00
Steven Wexler
dfbed9c6c9
docs: add leo-query to third-party libraries list ( #2824 )
...
Co-authored-by: Danilo Britto <dbritto.dev@gmail.com>
2024-10-28 23:12:31 -05:00
Prince Raj
f9b5538402
Update use-store.md ( #2799 )
...
there is a typo mistake while importing the setposition from positionstore
wrong : const setPosition = useStore(positionStore, (state) => state.setPositionStore)
correct : const setPosition = useStore(positionStore, (state) => state.setPosition)
2024-10-18 20:55:13 +09:00
Danilo Britto
cce8d5b22e
chore: fix middleware imports ( #2798 )
2024-10-16 09:12:01 -05:00