Skip to content

Commit

Permalink
Add deprecation to useEvent overload (#1030)
Browse files Browse the repository at this point in the history
One of useEvent overloads was not marked as deprecated, therefore ide may not mark this method as deprecated
  • Loading branch information
zerobias committed Dec 16, 2023
1 parent 22134c1 commit d3a5cf0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/effector-react/index.d.ts
Expand Up @@ -159,6 +159,9 @@ export function useEvent<T, R>(
fx: Effect<T, R, any>,
opts?: {forceScope?: boolean},
): (payload: T) => Promise<R>
/**
* @deprecated use useUnit hook instead
*/
export function useEvent<List extends (EventCallable<any> | Effect<any, any>)[]>(
list: [...List],
opts?: {forceScope?: boolean},
Expand Down

0 comments on commit d3a5cf0

Please sign in to comment.