Skip to content

Commit 2a3f3ad

Browse files
authored
Merge branch 'main' into devtools-fix
2 parents a9a2598 + a6143e0 commit 2a3f3ad

4 files changed

Lines changed: 5 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)

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/shallow.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ import { useState } from 'react'
22
import { act, fireEvent, render, screen } from '@testing-library/react'
33
import { beforeEach, describe, expect, it, vi } from 'vitest'
44
import { create } from 'zustand'
5-
import { useShallow } from 'zustand/react/shallow'
5+
import { shallow, useShallow } from 'zustand/shallow'
66
import { createWithEqualityFn } from 'zustand/traditional'
7-
import { shallow } from 'zustand/vanilla/shallow'
87

98
describe('types', () => {
109
it('works with useBoundStore and array selector (#1107)', () => {

tests/vanilla/shallow.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from 'vitest'
2-
import { shallow } from 'zustand/vanilla/shallow'
2+
import { shallow } from 'zustand/shallow'
33

44
describe('shallow', () => {
55
it('compares primitive values', () => {

0 commit comments

Comments
 (0)