chore: clarify deprecation message (#2337)

This commit is contained in:
Daishi Kato 2024-02-17 10:40:52 +09:00 committed by GitHub
parent 7d2525efdb
commit a85865b4b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,7 +41,7 @@ export function useStore<S extends WithReact<StoreApi<unknown>>, U>(
): U
/**
* @deprecated Use `useStoreWithEqualityFn` from 'zustand/traditional'
* @deprecated The usage with three arguments is deprecated. Use `useStoreWithEqualityFn` from 'zustand/traditional'. The usage with one or two arguments is not deprecated.
* https://github.com/pmndrs/zustand/discussions/1937
*/
export function useStore<S extends WithReact<StoreApi<unknown>>, U>(