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
I have a bug where I use a BeamGuard to redirect from one BeamLocation to another. The issue is that is never updates the pages and never builds the new BeamLocation.
After digging around, I found the responsible code lines:
The issue is that my redirected BeamLocations does not change the url location, but instead displays a different page for the same url.
I see why the specified lines are there but for me this does not work. Maybe the if block could also check whether the runtimeType of both BeamLocations are different.
If there is some other way that allows a BeamGuard to redirect to a BeamLocation without changing the url let me know.
Beamer version: 1.4.1
The text was updated successfully, but these errors were encountered:
I see what you mean... This is an interesting problem that should definitely allow more customization, e.g. that you can optionally customize what should BeamGuard treat as equal.
I'm planning to rework the guards for v2 so will assign this there. I plan to start working heavily on v2 next week.
I might have a related problem. I have two nested beamers. The top one has two guards: one that redirects unauth users to /signup and one that redirects users to /home.
The /home has another beamer, this beamer should also show a page when the url is /home:
So the BeamPage does not match the location. This only happens when I arrive at /home coming from the Guard redirect.
Also noted that doing _routerDelegate.addListener gives different results than using the routeListener which is confusing - when should I use one thing or the other?
Describe the bug
I have a bug where I use a BeamGuard to redirect from one BeamLocation to another. The issue is that is never updates the pages and never builds the new BeamLocation.
After digging around, I found the responsible code lines:
package/lib/src/beam_guard.dart#L132-L136
The issue is that my redirected BeamLocations does not change the url location, but instead displays a different page for the same url.
I see why the specified lines are there but for me this does not work. Maybe the
if
block could also check whether theruntimeType
of both BeamLocations are different.If there is some other way that allows a BeamGuard to redirect to a BeamLocation without changing the url let me know.
Beamer version: 1.4.1
The text was updated successfully, but these errors were encountered: