Danilo Britto
862c7bdd0f
Update testing docs ( #2008 )
...
* Update testing docs
* Minor fixes
* Minor fixes
* Update testing.md
2023-08-27 10:21:20 +09:00
John Gilliland
9ddfced2ea
docs: Update typescript guide persist examples... ( #2001 )
...
* docs: Update typescript guide persist examples to add required name option
* docs: run prettier
* docs: reverting prettier changes to testing.md
* docs: Update docs/guides/typescript.md per review comment.
Co-authored-by: Blazej Sewera <code@sewera.dev>
* docs: Update docs/guides/typescript.md per review comment and zustand conventions.
Co-authored-by: Blazej Sewera <code@sewera.dev>
* docs: change persist options name property to bearStore for consistency.
---------
Co-authored-by: John Gilliland <John.Gilliland@Starz.com>
Co-authored-by: Blazej Sewera <code@sewera.dev>
2023-08-25 16:54:04 +09:00
Michel Sabchuk
0058a03b78
fix(docs): Do not recommend deprecated useStore + equalityFn on initialize with props docs ( #1997 )
...
* Do not recommend deprecated useStore + equalityFn
* Show alternative without equality function
* Adjust content to be more clear
* Update docs/guides/initialize-state-with-props.md
Co-authored-by: Blazej Sewera <code@sewera.dev>
* Apply prettier
---------
Co-authored-by: Blazej Sewera <code@sewera.dev>
2023-08-17 08:16:19 +09:00
Aykut Kardaş
5493959646
docs: update persisting-store-data.md ( #1993 )
2023-08-15 08:30:19 +09:00
Daishi Kato
49d43b7ddd
fix(readme): description with createWithEqualityFn ( #1985 )
...
* fix(readme): description with createWithEqualityFn
* fix wording
---------
Co-authored-by: Blazej Sewera <code@sewera.dev>
2023-08-12 19:04:46 +09:00
daishi
0426978490
4.4.1
v4.4.1
2023-08-07 08:41:49 +09:00
Daishi Kato
29e1820784
chore(deps): update dev dependencies ( #1981 )
2023-08-07 08:41:21 +09:00
Daishi Kato
a10dd1c669
fix: improve warning for deprecated equalityFn ( #1976 )
...
* fix: improve warning for deprecated equalityFn
* fix tsc error
2023-08-07 08:26:50 +09:00
Daishi Kato
1a9b309844
fix(types): accept undefined equalityFn for the deprecated useStore ( #1972 )
2023-08-07 08:24:29 +09:00
Juhyeok Kang
19d3df22a6
docs: fix typo ( #1969 )
2023-08-03 08:40:20 +09:00
daishi
2778e71c84
4.4.0
v4.4.0
2023-08-01 10:46:16 +09:00
Daishi Kato
5777a65cf5
chore(deps): update dev dependencies ( #1965 )
2023-08-01 10:42:18 +09:00
leviosa-e
a2ad770903
fix: declare @types/react as peerDep to avoid phantom dep ( #1963 )
2023-08-01 10:15:28 +09:00
Daishi Kato
c6900a4562
feat: deprecate equalityFn and add createWithEqualityFn ( #1945 )
...
* feat: deprecate equalityFn and add createWithEqualityFn
* add link to deprecation message
2023-08-01 10:15:09 +09:00
Tiago Bento
6d9c0cff0d
Fix slices-pattern.md link on flux-inspired-practice.md ( #1962 )
2023-07-28 09:39:58 +09:00
cwtuan
43791eb8dc
add usage trends in readme.md ( #1953 )
...
* add usage trends in readme.md
* usage trend of zustand
* Update link
* Update comparison.md
add link to npm trend
* Update comparison.md
* fix: ci
---------
Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2023-07-27 21:16:08 +09:00
Itay
c5e7c30660
avoid 'any' errors and make example clearer ( #1957 )
2023-07-26 16:29:17 +09:00
—
f11cc7f37a
example: correct entry index.html
2023-07-16 15:58:51 +02:00
—
8194bdf41a
example: favicon & manifest
2023-07-16 15:54:25 +02:00
—
1c660b4de3
example: clean up styles
2023-07-16 15:45:00 +02:00
—
307c025066
examples: fix prettier / lint
2023-07-16 14:54:03 +02:00
—
47649176e0
update example, move to vite
2023-07-16 14:46:05 +02:00
Tuan Anh
642b0bc055
fix doc typo ( #1932 )
...
Co-authored-by: anhdoecourier <tdo@e-courier.com>
2023-07-15 15:18:44 +09:00
Mohammed 'Mo' Mulazada
f73736d59a
improve docs readability ( #1931 )
...
* make codeblock easier to understand
* add explanation to what mock does
* add info block
* rewrite typescript section
* Update typescript.md
* Update docs/guides/testing.md
Co-authored-by: Blazej Sewera <code@sewera.dev>
* prefix with >
---------
Co-authored-by: Blazej Sewera <code@sewera.dev>
2023-07-13 18:01:47 +09:00
Luiz Felicio
808a72225e
docs(auto-generating-selectors): Add vanilla store variant ( #1915 )
...
* Add variant for vanilla stores
* Update text tone and style
Co-authored-by: Blazej Sewera <code@sewera.dev>
* Adjust code style to match zustand's one
* Run prettier
---------
Co-authored-by: Blazej Sewera <code@sewera.dev>
2023-07-05 08:38:35 +09:00
daishi
ea40986e46
4.3.9
v4.3.9
2023-07-04 23:37:13 +09:00
Daishi Kato
16cafcaeaf
chore(deps): update dev dependencies ( #1919 )
2023-07-04 23:36:23 +09:00
Daishi Kato
f0d9d984bd
fix(build): mode env for "import" condition" ( #1845 )
...
* fix(build): mode env for "import" condition"
* another way
* yet another way
2023-07-04 22:40:31 +09:00
Dipankar Roy
1a92e94d0a
📝 Fixed some grammar and punctuation ( #1913 )
...
* 📝 Fixed some typos
* Update readme.md
Co-authored-by: Blazej Sewera <code@sewera.dev>
* Update readme.md
---------
Co-authored-by: Blazej Sewera <code@sewera.dev>
2023-07-04 08:50:44 +09:00
Surya Vivek
58947a5bf9
docs: fix typo 'with be' to 'will be' ( #1906 )
2023-06-30 09:03:15 +09:00
Choi Hyunjin
d4e5aed00a
docs(readme): modify usage of Redux devtools ( #1903 )
2023-06-29 18:04:25 +09:00
Danilo Britto
1b557cba07
Testing docs minor fixes ( #1898 )
...
* Minor fixes
* Update testing.md
* Update testing.md
2023-06-28 08:07:11 +09:00
Lars Artmann
3584d5075a
Update comment //store.ts to //store.tsx in zustand-v3-create-context.md ( #1893 )
2023-06-23 16:18:09 +09:00
Danilo Britto
9333eb629c
Improve testing docs ( #1875 )
...
* Update testing docs (wip)
* WIP
* WIP
* Update testing docs
* Minor updates
2023-06-23 07:58:13 +09:00
Kiku
7276b531bc
docs: correct import alias syntax ( #1889 )
2023-06-21 20:01:30 +09:00
Chris K
e8597ae77f
docs: refine flux inspired docs to make pattern inspiration clearer ( #1874 )
...
* docs: refine flux inspired docs to make pattern inspiration clearer
* docs: remove the immutable note in the flux inspired docs
2023-06-18 11:42:01 +09:00
Ivo Ilić
a53433543c
Added zustand-ards to the third-party libraries list ( #1856 )
...
* Added zustand-ards to the third-party libraries list
* Update third-party-libraries.md
2023-06-11 06:55:37 +09:00
David Corbacho
84c7323c8e
[Documentation] Import shallow from right package ( #1847 )
2023-06-07 21:59:48 +09:00
Romain
3a365a0804
docs: added a new third party lib ( #1843 )
...
* docs: added a new third party lib
* chore: prettier
2023-06-07 16:53:44 +09:00
Leo López
618c2e5a76
docs(readme): fix import of "produce" function ( #1844 )
2023-06-07 10:41:19 +09:00
Dmitri Cusnir
eb5ec74c3d
Update third-party-libraries.md ( #1827 )
...
rename npm package zustand-fetching -> leiten-zustand
2023-05-27 07:50:02 +09:00
203X
ac4ec46bd6
fix useHydration hook ( #1826 )
...
The initialization type of `useState` is incorrect. hydrated needs to be of boolean type, whereas the original `useBoundStore.persist.hasHydrated` is a function. This will lead to errors, such as during the static build of frameworks like Next.js.
2023-05-27 07:49:28 +09:00
Dmitri Cusnir
8cb150ae8a
Update third-party-libraries.md ( #1816 )
...
* Update third-party-libraries.md
* Update docs/integrations/third-party-libraries.md
Co-authored-by: Blazej Sewera <code@sewera.dev>
* Update third-party-libraries.md
---------
Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
Co-authored-by: Blazej Sewera <code@sewera.dev>
2023-05-22 19:31:40 +09:00
Valerii Petryniak
dfa779b14d
Update readme.md: add pnpm as install option ( #1819 )
...
* Update readme.md: add pnpm as install option
* Update readme.md
Co-authored-by: Blazej Sewera <code@sewera.dev>
---------
Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
Co-authored-by: Blazej Sewera <code@sewera.dev>
2023-05-21 07:55:27 +09:00
Will McBride
d61b70fd8d
Update Recipes persist example to match example in Persisting Store Data integration ( #1813 )
...
Replace the deprecated `getStorage` option with the new `storage` option with `createJSONStorage`.
2023-05-18 07:53:10 +09:00
Celine Cheng
286e4436c7
docs: persist and connect state with url ( #1804 )
...
* docs: persist and connect state with url
* ran prettier
* remove line
* Apply suggestions from code review
Co-authored-by: Blazej Sewera <code@sewera.dev>
* from review comments
---------
Co-authored-by: celinecheng <celine.cheng@capitalone.com>
Co-authored-by: Blazej Sewera <code@sewera.dev>
2023-05-17 20:52:02 +09:00
Alex S
56ab6db790
docs: fixes typo on variable name ( #1810 )
2023-05-17 20:11:58 +09:00
Vadim Shvetsov
614bf5fbbb
Fix saving URL hash example demo ( #1800 )
2023-05-12 08:14:44 +09:00
Nipodemos
65d2bc0660
Add section for usage of persist middleware with NextJS ( #1782 )
...
* Add section for usage of persist middleware with NextJS
I have spent the last 1h30m trying to find the solution for `Hydration failed because the initial UI does not match what was rendered on the server` and after digging a lot I found the solution.
So i thought: Maybe this could be on official documentation!
So I made it. It's just copy and paste but at least it will be easier for future folks trying to solve the same problem
* ran yarn prettier
* fix typos
* Update docs/integrations/persisting-store-data.md
Co-authored-by: Blazej Sewera <code@sewera.dev>
* splitting long lines into smaller ones
following the suggestion of PR
* commit suggestion of changes in PR
Co-authored-by: Blazej Sewera <code@sewera.dev>
* commit suggestion of changes in PR
Co-authored-by: Blazej Sewera <code@sewera.dev>
* commit suggestion of changes in PR
Co-authored-by: Blazej Sewera <code@sewera.dev>
* commit suggestion of changes in PR
Co-authored-by: Blazej Sewera <code@sewera.dev>
* applying changes requested in PR
---------
Co-authored-by: Blazej Sewera <code@sewera.dev>
2023-05-08 08:25:00 +09:00
Brendan Dash
639aa00699
docs(recipes): fix description of devtools store naming ( #1792 )
2023-05-05 21:30:40 +09:00