mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
[Documentation] Import shallow from right package (#1847)
This commit is contained in:
parent
3a365a0804
commit
84c7323c8e
@ -129,7 +129,8 @@ subscribe(selector, callback, options?: { equalityFn, fireImmediately }): Unsubs
|
||||
|
||||
```jsx
|
||||
import { create } from 'zustand'
|
||||
import { subscribeWithSelector, shallow } from 'zustand/middleware'
|
||||
import { subscribeWithSelector } from 'zustand/middleware'
|
||||
import { shallow } from 'zustand/shallow'
|
||||
const useStore = create(
|
||||
subscribeWithSelector(() => ({ paw: true, snout: true, fur: true }))
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user