usePersistFn

持久化 function 的 Hook

代码演示

基本用法

count: 0

持久化的函数参数

渲染次数:1

未持久化的函数参数

渲染次数:1

Live Editor
Copy

API

type usePersistFn = <T extends Function>(fn: T) => T