mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
docs(recipes): fix description of devtools store naming (#1792)
This commit is contained in:
parent
0784028ed7
commit
639aa00699
@ -410,8 +410,8 @@ const useStore = create(devtools(store, { enabled: false }))
|
||||
```
|
||||
|
||||
The `devtools` middleware takes the store function as its first argument.
|
||||
Optionally, you can name the store with a second argument:
|
||||
`devtools(store, "MyStore")`, which will be prefixed to your actions.
|
||||
Optionally, you can name the store with a second argument `devtoolsOptions`:
|
||||
`devtools(store, { store: "MyStore" })`, which will be prefixed to your actions.
|
||||
|
||||
`devtools` will only log actions from each separated store,
|
||||
unlike in a typical _combined reducers_ Redux store.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user