mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
breaking(types): drop deprecated UseStore type (#596)
* fix(types): Rename from UseStore to UseBoundStore * breaking(types): drop deprecated UseStore type * empty commit
This commit is contained in:
parent
c99bbcd4ad
commit
34bf82bf27
11
src/react.ts
11
src/react.ts
@ -24,17 +24,6 @@ const isSSR =
|
||||
|
||||
const useIsomorphicLayoutEffect = isSSR ? useEffect : useLayoutEffect
|
||||
|
||||
/**
|
||||
* @deprecated Please use UseBoundStore instead
|
||||
*/
|
||||
export type UseStore<
|
||||
T extends State,
|
||||
CustomStoreApi extends StoreApi<T> = StoreApi<T>
|
||||
> = {
|
||||
(): T
|
||||
<U>(selector: StateSelector<T, U>, equalityFn?: EqualityChecker<U>): U
|
||||
} & CustomStoreApi
|
||||
|
||||
export type UseBoundStore<
|
||||
T extends State,
|
||||
CustomStoreApi extends StoreApi<T> = StoreApi<T>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user