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
then pure $ R.nothing
else do
R.setRef oPath path
liftEffect $ T.write_ Nothing state
R2.affEffect "G.H.Loader.useLoaderEffect" $ do
l <- loader' path
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