You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
NickDarvey
changed the title
Custom router gets stuck in a SetLocation loop after first SetPage
Custom router gets stuck in a SetRoute loop on first navigation
May 27, 2020
Ah, I found the problem. In the custom router, getRoute actually needs to return relative paths, ie without the initial /. That's doubly wrong: it's not intuitive, and it contradicts the documentation! I'll fix it so that either absolute or relative paths can be used.
I'm having an issue with implementing a custom router where it
setRoute
is called infinitely.https://github.com/NickDarvey/bolero-custom-router/blob/0bfea305481d412cc4ab9f2ae25e2bd85f8c8c49/src/RoutingPlz.Client/Main.fs#L98-L111
Repro
Expected
Navigates to counter page via an invocation of
setRoute
.Actual
setRoute
is called infinitely.System info
bolero-app
template.This is at the top of the call stack:
Bolero/src/Bolero/Components.fs
Lines 145 to 149 in 4b2e042
The text was updated successfully, but these errors were encountered: