UNPKG
@rbxts/pretty-react-hooks
Version:
alpha (0.4.0-alpha.0)
latest (0.6.4)
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.2
0.5.1
0.5.0
0.4.2
0.4.1
0.4.0
0.4.0-alpha.0
0.3.3
0.3.2
0.3.1
0.3.0
0.2.1
0.2.0
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
Useful hooks for @rbxts/react
github.com/littensy/pretty-react-hooks
littensy/pretty-react-hooks
@rbxts/pretty-react-hooks
/
out
/
use-latest-callback
/
use-latest-callback.d.ts
8 lines
(7 loc)
•
253 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
/** * Returns a memoized callback that wraps the latest version of the input * callback. *
@param
callback The callback to memoize. *
@returns
The memoized callback. */
export
declare
function
useLatestCallback
<
T
extends
Callback
>(
callback: T
):
T
;