-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import * as Eq from 'fp-ts/Eq'; | ||
import { EffectCallback, useEffect } from 'react'; | ||
export declare const useStableEffect: <A extends readonly unknown[]>(callback: EffectCallback, dependencies: A, eq: Eq.Eq<A>) => ReturnType<typeof useEffect>; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { useStable, useStableE, useStableO } from './state'; | ||
export { useStableEffect } from './effect'; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import * as E from 'fp-ts/Either'; | ||
import * as Eq from 'fp-ts/Eq'; | ||
import * as O from 'fp-ts/Option'; | ||
import { Dispatch } from 'react'; | ||
export declare const useStable: <A>(initState: A, eq: Eq.Eq<A>) => [A, Dispatch<A>]; | ||
export declare const useStableO: <A>(initState: O.Option<A>) => [O.Option<A>, Dispatch<O.Option<A>>]; | ||
export declare const useStableE: <E, A>(initState: E.Either<E, A>) => [E.Either<E, A>, Dispatch<E.Either<E, A>>]; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.