mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
Update slices pattern links in readme and flux guide (#1353)
* readme: link slices pattern guide * docs: update slices pattern link in flux guide
This commit is contained in:
parent
cf0bef6d5e
commit
d27ea94884
@ -19,7 +19,7 @@ const useBoundStore = create((set) => ({
|
||||
}))
|
||||
```
|
||||
|
||||
See [Splitting the store into separate slices](./typescript.md#slices-pattern) for how to define a store with separate slices.
|
||||
See [Splitting the store into separate slices](./slices-pattern.md) for how to define a store with separate slices.
|
||||
|
||||
## Flux like patterns / "dispatching" actions
|
||||
|
||||
|
||||
@ -496,7 +496,7 @@ A more complete TypeScript guide is [here](docs/guides/typescript.md).
|
||||
|
||||
## Best practices
|
||||
|
||||
- You may wonder how to organize your code for better maintenance: [Splitting the store into separate slices](./docs/guides/typescript.md#slices-pattern).
|
||||
- You may wonder how to organize your code for better maintenance: [Splitting the store into separate slices](./docs/guides/slices-pattern.md).
|
||||
- Recommended usage for this unopinionated library: [Flux inspired practice](./docs/guides/flux-inspired-practice.md).
|
||||
- [Calling actions outside a React event handler in pre React 18](./docs/guides/event-handler-in-pre-react-18.md).
|
||||
- [Testing](./docs/guides/testing.mdx)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user