[Documentation] Import shallow from right package (#1847)

This commit is contained in:
David Corbacho 2023-06-07 15:59:48 +03:00 committed by GitHub
parent 3a365a0804
commit 84c7323c8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 }))
)