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
Developing for Android app. The original behavior of Beamer (i suppose) it is like:
Render to /auth/login.
From login page, I want to beam to /auth/register (register page).
From register page, when I push back button (andorid) or app bar's back button, the route will be popped /auth, which is not found in my setup. The behavior i want is beam back.
Setting up alwaysBeamBack in BeamerBackButtonDispatcher will solve the behavior of android back button. But not app bar back button.
Well, it can be solved by putting parameter beamBackOnPop to true whenever I call the navigation method. Such as:
Because the "key concepts" of Beamer, I think this parameter exists to solve the responsibility separation. So, if i am not wrong, the correct behavior should be:
If I set the beamBackOnPop parameters to true in BeamLocation child classes, whenever the route goes to that location, the beamback will be chosen as default pop mechanism.
Smartphone:
Xiami Mi 8 with latest PixelExperience ROM
Additional context
For now, as I need to finish the project quickly, I go with workaround by setting up beamBackOnPop parameter each time when I called beamToNamed function.
Also, if possible, may be there should be a BeamParameter that can be set up in global for BeamerDelegate.
The text was updated successfully, but these errors were encountered:
Beamer version: 1.5.6
Describe the bug
Developing for Android app. The original behavior of Beamer (i suppose) it is like:
/auth/login
./auth/register
(register page)./auth
, which is not found in my setup. The behavior i want is beam back.alwaysBeamBack
inBeamerBackButtonDispatcher
will solve the behavior of android back button. But not app bar back button.Well, it can be solved by putting parameter
beamBackOnPop
totrue
whenever I call the navigation method. Such as:This is kinda frustating to set it on every navigation.
Then, I noticed there is a parameter for
BeamLocation
, which isBeamParameters
that hasbeamBackOnPop
. Nice.But, when I set the parameters, it won't work. It is still running on original behavior, which is removing the last URI.
Expected behavior
Because the "key concepts" of Beamer, I think this parameter exists to solve the responsibility separation. So, if i am not wrong, the correct behavior should be:
If I set the
beamBackOnPop
parameters to true in BeamLocation child classes, whenever the route goes to that location, the beamback will be chosen as default pop mechanism.Smartphone:
Xiami Mi 8 with latest PixelExperience ROM
Additional context
For now, as I need to finish the project quickly, I go with workaround by setting up
beamBackOnPop
parameter each time when I calledbeamToNamed
function.Also, if possible, may be there should be a
BeamParameter
that can be set up in global forBeamerDelegate
.The text was updated successfully, but these errors were encountered: