UNPKG
@lyonph/preact-hooks
Version:
latest (0.7.0)
0.7.0
0.6.0
0.5.1
0.5.0
0.4.0
0.3.0
0.2.0
0.1.3
0.1.2
0.1.1
0.1.0
Collection of useful Preact Hooks
github.com/LyonInc/preact-hooks
@lyonph/preact-hooks
/
dist
/
types
/
useConditionalMemo.d.ts
3 lines
(2 loc)
•
176 B
TypeScript
View Raw
1
2
3
import
{
ShouldUpdate
}
from
'./useDependencyChanged'
;
export
default
function
useConditionalMemo<T, R>(
supplier
:
() =>
T,
dependency
: R, shouldUpdate?:
ShouldUpdate
<R>): T;