Skip to content

Commit

Permalink
Merge pull request #143 from gbaldeck/master
Browse files Browse the repository at this point in the history
Fix useCallback hook type definition
  • Loading branch information
Leonya authored Feb 5, 2020
2 parents aeccaf6 + 1bb2b2d commit 424e553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kotlin-react/src/main/kotlin/react/Imports.kt
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ external fun rawUseLayoutEffect(effect: () -> dynamic)
external fun <T> useContext(context: RContext<T>): T

// Callback Hook (16.8+)
external fun useCallback(callback: () -> Unit, dependencies: RDependenciesArray): () -> Unit
external fun <T: Function<*>> useCallback(callback: T, dependencies: RDependenciesArray): T

// Memo Hook (16.8+)
external fun <T> useMemo(callback: () -> T, dependencies: RDependenciesArray): T
Expand Down

0 comments on commit 424e553

Please sign in to comment.