Commit 050f9623 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[loader] reset state when paths have changed

parent 6e085c66
...@@ -84,6 +84,7 @@ useLoaderEffect { errorHandler, loader: loader', path, state } = do ...@@ -84,6 +84,7 @@ useLoaderEffect { errorHandler, loader: loader', path, state } = do
then pure $ R.nothing then pure $ R.nothing
else do else do
R.setRef oPath path R.setRef oPath path
liftEffect $ T.write_ Nothing state
R2.affEffect "G.H.Loader.useLoaderEffect" $ do R2.affEffect "G.H.Loader.useLoaderEffect" $ do
l <- loader' path l <- loader' path
case l of case l of
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment