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
note the console log showing the sequence of events: SAVE -> PARAMS -> LOCATION;
reload the page;
note the sequence: INIT -> PARAMS;
clear the console again;
now edit the input box with some international text like Тест (this one is in Russian language, so just copy-paste) and press enter;
not the change in sequence: SAVE -> PARAMS -> LOCATION (2) (called two times);
reload the page;
note the sequence: INIT -> PARAMS -> LOCATION;
The issue is 10 and 12.
In 10 there should be only one location change just like in 5.
And in 12 there should be no location change at all, just like in 7.
Double location changes lead to multiple records in browser history so when a user presses back he is not navigated actually back in history because history is doubled and sometimes tripled.
* ActionSubscribers are now notified after state has been reduced ([#299](#299))
* Routing middleware will no longer dispatch a GoAction when URl is the same value but formatted differently ([#297](#297))
* `IDispatcher` now queues actions whenever there are no subscribers to the `ActionDispatched` event and then
dequeues them when a subscriber is added ([#301](#301))
Here is a repro.
To reproduce:
Test
in the input box and press enter;SAVE
->PARAMS
->LOCATION
;INIT
->PARAMS
;Тест
(this one is in Russian language, so just copy-paste) and press enter;SAVE
->PARAMS
->LOCATION (2)
(called two times);INIT
->PARAMS
->LOCATION
;The issue is
10
and12
.In
10
there should be only one location change just like in5
.And in
12
there should be no location change at all, just like in7
.Double location changes lead to multiple records in browser history so when a user presses
back
he is not navigated actually back in history because history is doubled and sometimes tripled.My guess is that the issue is this:
Fluxor/Source/Fluxor.Blazor.Web/Middlewares/Routing/Effects.cs
Line 20 in 97997c7
The
Uri
might be unescaping the URL it contains whereasNavigationManager.Uri
returns it as escaped sequence. Hence the difference.Perhaps something like this would be better?
In this case any irrelevant differences won't trigger location changing.
The text was updated successfully, but these errors were encountered: