[loader] useEffect' only on path change, in useLoaderBox

parent b11509ca
Pipeline #7967 passed with stages
in 27 minutes and 18 seconds
......@@ -154,7 +154,7 @@ useLoaderBox { errorHandler, herePrefix, loader: loader', path, render } = do
state <- T.useBox Nothing
path' <- T.useLive T.unequal path
R.useEffect' $ do
R.useEffect1' path' $ do
liftEffect $ T.write_ Nothing state
R2.affEffect "useLoaderBox" $ do
result <- loader' path'
......
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