-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: pmndrs/zustand
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.4.7
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: pmndrs/zustand
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.5.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 12 commits
- 22 files changed
- 10 contributors
Commits on Dec 9, 2023
-
1
Configuration menu - View commit details
-
Copy full SHA for 19960f6 - Browse repository at this point
Copy the full SHA 19960f6View commit details -
1
Configuration menu - View commit details
-
Copy full SHA for fa04478 - Browse repository at this point
Copy the full SHA fa04478View commit details
Commits on Dec 11, 2023
-
1
Configuration menu - View commit details
-
Copy full SHA for 662f38a - Browse repository at this point
Copy the full SHA 662f38aView commit details
Commits on Dec 12, 2023
-
chore(test): stop testing deprecated features and test subscribe in v…
…anilla (#2244) * chore(test): update test to stop testing deprecated features * chore(test): add subscribe test for zustand/vanilla * chore(test): only verify that subscribe exists on `create` * chore(test): switch type of test
1Configuration menu - View commit details
-
Copy full SHA for 9baf0a5 - Browse repository at this point
Copy the full SHA 9baf0a5View commit details
Commits on Dec 13, 2023
-
chore(docs): rewrite to remove deprecated references in persist docs (#…
…2248) * chore(docs): rewrite to remove deprecated references in persist docs * chore(docs): remove deprecated equalityFn
1Configuration menu - View commit details
-
Copy full SHA for 41838c5 - Browse repository at this point
Copy the full SHA 41838c5View commit details
Commits on Dec 15, 2023
-
1
Configuration menu - View commit details
-
Copy full SHA for a4578fa - Browse repository at this point
Copy the full SHA a4578faView commit details
Commits on Dec 22, 2023
-
Adding Zusty (zustand dev tool) to the third party libraries (#2267)
* Update third-party-libraries.md Adding zustand dev tool made by oslabs to the third party libraries. * Update third-party-libraries.md changed to alphabetical order * Update third-party-libraries.md formatted with prettier/which got rid of the extra space on line 17
1Configuration menu - View commit details
-
Copy full SHA for 517524d - Browse repository at this point
Copy the full SHA 517524dView commit details
Commits on Dec 31, 2023
-
fix(docs): errors and types fix for URL state example (#2218)
* Update connect-to-state-with-url-hash.md Resolved a few errors and type errors in the persist and create state with URL example: 1. createJsonStorage not being called in storageOptions resulting in a type error. 2. Correct hook not being exported 3. Moved the creation of initial state inline to get the correct types passed from create/persist. 4. Used state type as generic for persist. * yarn prettier run * Update docs/guides/connect-to-state-with-url-hash.md Better name for state in setter Co-authored-by: Danilo Britto <dbritto.dev@gmail.com> * prettier run --------- Co-authored-by: Danilo Britto <dbritto.dev@gmail.com> Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
1Configuration menu - View commit details
-
Copy full SHA for 4be1e9e - Browse repository at this point
Copy the full SHA 4be1e9eView commit details
Commits on Jan 20, 2024
-
* feat(react): implement getServerState by closing over the defaultState serverState will be used by react on the first client render; this should avoid hydration mismatches when combined with the persist middleware, which can change the state between the SSR and the first CSR * define getServerState in vanilla.ts * feat: implement getServerResult in persist middleware this avoids hydration errors when state is restored from e.g. localstorage synchronously * feat: capture initialState for getServerState in react this avoids hydration mismatches when updates happen to the store state between ssr and csr * refactor: revert changes to oldImpl * fix: make selector default to identity function if we default to `api.getState`, we will always read the client snapshot if there is no selector passed. An identity function returns its argument, which is either the snapshot (api.getState) or the server snapshot (api.getServerState) * define getInitialState in vanilla * revert WithReact * fix them * fix test * oops, fix another test too * forgot to use identity * test: add a test for hydration errors * fix(readme): imply getInitialState is a public api --------- Co-authored-by: daishi <daishi@axlight.com>
1Configuration menu - View commit details
-
Copy full SHA for 740033c - Browse repository at this point
Copy the full SHA 740033cView commit details -
1
Configuration menu - View commit details
-
Copy full SHA for 43a2b11 - Browse repository at this point
Copy the full SHA 43a2b11View commit details -
chore(deps): update dev dependencies (#2297)
* chore(deps): update dev dependencies * fix lock file
1Configuration menu - View commit details
-
Copy full SHA for d12b4fb - Browse repository at this point
Copy the full SHA d12b4fbView commit details -
1
Configuration menu - View commit details
-
Copy full SHA for 13830c1 - Browse repository at this point
Copy the full SHA 13830c1View commit details
There are no files selected for viewing
Large diffs are not rendered by default.