Skip to content

Commit bf58fb9

Browse files
authored
Removed calling runRouter on initial load (#7)
1 parent 4e93df1 commit bf58fb9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Router.purs

-3
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,6 @@ makeRouter interface { parse, print, onRoute, onTransition } =
6868
Continue -> finalise route
6969
mempty
7070
Ref.write (Just fiber) fiberRef
71-
-- run on the current path
72-
{ path } <- interface.locationState
73-
traverse_ runRouter (parse path)
7471
component <-
7572
React.component "Wire.Router" \_ -> React.do
7673
React.useEffectOnce (onPushState runRouter)

0 commit comments

Comments
 (0)