We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 088d175 commit 7b5ec57Copy full SHA for 7b5ec57
src/React/Hook.purs
@@ -173,17 +173,17 @@ foreign import useCallback_
173
(Hook (a -> b))
174
175
useMemo
176
- :: forall a b
177
- . (Unit -> a -> b)
+ :: forall a
+ . (Unit -> a)
178
-> Maybe (Array HookInput)
179
- -> Hook (a -> b)
+ -> Hook a
180
useMemo k = runFn2 useMemo_ k <<< Nullable.toNullable
181
182
foreign import useMemo_
183
184
- . Fn2 (Unit -> a -> b)
+ . Fn2 (Unit -> a)
185
(Nullable (Array HookInput))
186
- (Hook (a -> b))
+ (Hook a)
187
188
useRef :: forall a. Maybe a -> Hook (Ref a)
189
useRef = runFn1 useRef_ <<< Nullable.toNullable
0 commit comments