mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
fix: typo in shallow.ts (#1667)
This commit is contained in:
parent
4517fed815
commit
e6a99c5c05
@ -54,7 +54,7 @@ export function shallow<T>(objA: T, objB: T) {
|
||||
export default ((objA, objB) => {
|
||||
if (import.meta.env?.MODE !== 'production') {
|
||||
console.warn(
|
||||
"[DEPRECATED] Default export is deprecated. Instead use `import { create } from 'zustand/shallow'`."
|
||||
"[DEPRECATED] Default export is deprecated. Instead use `import { shallow } from 'zustand/shallow'`."
|
||||
)
|
||||
}
|
||||
return shallow(objA, objB)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user