Skip to content

Commit 31235a6

Browse files
committed
add link to deprecation message
1 parent d22c10c commit 31235a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/react.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export function useStore<S extends WithReact<StoreApi<unknown>>, U>(
3434

3535
/**
3636
* @deprecated Use `useStoreWithEqualityFn` from 'zustand/traditional'
37+
* https://github.com/pmndrs/zustand/discussions/1937
3738
*/
3839
export function useStore<S extends WithReact<StoreApi<unknown>>, U>(
3940
api: S,
@@ -48,7 +49,7 @@ export function useStore<TState, StateSlice>(
4849
) {
4950
if (import.meta.env?.MODE !== 'production' && equalityFn) {
5051
console.warn(
51-
"[DEPRECATED] Use `createWithEqualityFn` from 'zustand/traditional'."
52+
"[DEPRECATED] Use `createWithEqualityFn` from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
5253
)
5354
}
5455
const slice = useSyncExternalStoreWithSelector(

0 commit comments

Comments
 (0)