[Loader] implement componentDidUpdate

parent 2c61318a
......@@ -48,6 +48,9 @@ createLoaderClass' name loader render =
pure { state: s.state
, render: s.render
, componentDidMount: dispatcher this ForceReload
, componentDidUpdate: \_prevProps _prevState _snapshot -> do
{path} <- React.getProps this
dispatcher this (SetPath path)
})
where
initialState {path} = {currentPath: path, loaded: Nothing}
......
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