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 027c7ef commit 90855ccCopy full SHA for 90855cc
src/Elmish/React/Ref.purs
@@ -35,6 +35,7 @@ instance CanPassToJavaScript (Ref a)
35
callbackRef :: forall el. Maybe el -> (Maybe el -> Effect Unit) -> Ref el
36
callbackRef ref setRef = mkCallbackRef $ mkEffectFn1 \ref' -> case ref, Nullable.toMaybe ref' of
37
Nothing, Nothing -> pure unit
38
+ Just _, Nothing -> pure unit
39
Just r, Just r'
40
| eqByReference r r' -> pure unit
41
| otherwise -> setRef $ Just r'
0 commit comments