Skip to content

Commit d05327e

Browse files
authored
Merge branch 'main' into refactor/shallow-export-simplification
2 parents 398e477 + 3d9ecb1 commit d05327e

6 files changed

Lines changed: 7 additions & 6 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ A small, fast and scalable bearbones state-management solution using simplified
1212

1313
Don't disregard it because it's cute. It has quite the claws, lots of time was spent dealing with common pitfalls, like the dreaded [zombie child problem](https://react-redux.js.org/api/hooks#stale-props-and-zombie-children), [react concurrency](https://github.com/bvaughn/rfcs/blob/useMutableSource/text/0000-use-mutable-source.md), and [context loss](https://github.com/facebook/react/issues/13332) between mixed renderers. It may be the one state-manager in the React space that gets all of these right.
1414

15-
You can try a live demo [here](https://githubbox.com/pmndrs/zustand/tree/main/examples/demo).
15+
You can try a live [demo](https://zustand-demo.pmnd.rs/) and read the [docs](https://zustand.docs.pmnd.rs/).
1616

1717
```bash
1818
npm install zustand
@@ -505,4 +505,4 @@ Some users may want to extend Zustand's feature set which can be done using thir
505505
506506
## Comparison with other libraries
507507
508-
- [Difference between zustand and other state management libraries for React](https://docs.pmnd.rs/zustand/getting-started/comparison)
508+
- [Difference between zustand and other state management libraries for React](https://zustand.docs.pmnd.rs/getting-started/comparison)

docs/guides/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ See these resources for test runner configuration instructions:
2626
**We recommend using [React Testing Library (RTL)](https://testing-library.com/docs/react-testing-library/intro)
2727
to test out React components that connect to Zustand**. RTL is a simple and complete React DOM
2828
testing utility that encourages good testing practices. It uses ReactDOM's `render` function and
29-
`act` from `react-dom/tests-utils`. Futhermore, [Native Testing Library (RNTL)](https://testing-library.com/docs/react-native-testing-library/intro)
29+
`act` from `react-dom/tests-utils`. Furthermore, [Native Testing Library (RNTL)](https://testing-library.com/docs/react-native-testing-library/intro)
3030
is the alternative to RTL to test out React Native components. The [Testing Library](https://testing-library.com/)
3131
family of tools also includes adapters for many other popular frameworks.
3232

docs/integrations/third-party-libraries.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ This can be done using third-party libraries created by the community.
1515
> for someone looking to extend Zustand's feature set.
1616
1717
- [@colorfy-software/zfy](https://colorfy-software.gitbook.io/zfy/) — 🧸 Useful helpers for state management in React with Zustand.
18+
- [@csark0812/zustand-expo-devtools](https://github.com/csark0812/zustand-expo-devtools) — 🧭 Connect Zustand to Redux DevTools in Expo + React Native using the official Expo DevTools plugin system.
1819
- [@davstack/store](https://www.npmjs.com/package/@davstack/store) — A zustand store factory that auto generates selectors with get/set/use methods, supports inferred types, and makes global / local state management easy.
1920
- [@dhmk/zustand-lens](https://github.com/dhmk083/dhmk-zustand-lens) — Lens support for Zustand.
2021
- [@liveblocks/zustand](https://github.com/liveblocks/liveblocks/tree/main/packages/liveblocks-zustand) — Liveblocks middleware to make your application multiplayer.

examples/demo/src/components/Details.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export default function Details() {
22
return (
33
<>
44
<nav className="nav">
5-
<a href="https://docs.pmnd.rs/zustand">Documentation</a>
5+
<a href="https://zustand.docs.pmnd.rs/">Documentation</a>
66
<a href="https://github.com/pmndrs/zustand">Github</a>
77
</nav>
88
<div className="bottom">

tests/persistAsync.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ describe('persist middleware with async configuration', () => {
302302
)
303303
})
304304

305-
it('can correclty handle a missing migrate function', async () => {
305+
it('can correctly handle a missing migrate function', async () => {
306306
console.error = vi.fn()
307307
const onRehydrateStorageSpy = vi.fn()
308308
const storage = {

tests/persistSync.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ describe('persist middleware with sync configuration', () => {
168168
expect(onRehydrateStorageSpy).toBeCalledWith({ count: 99 }, undefined)
169169
})
170170

171-
it('can correclty handle a missing migrate function', () => {
171+
it('can correctly handle a missing migrate function', () => {
172172
console.error = vi.fn()
173173
const onRehydrateStorageSpy = vi.fn()
174174
const storage = {

0 commit comments

Comments
 (0)