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'm trying to make breadcrumbs for an app, and wanted to distinguish goBack and goForward by the value of action parameter. But any call to go function returns a POP action.
Is it possible to add something in the listen function to distinguish if whether it's a goBack or goForward ?
The text was updated successfully, but these errors were encountered:
The browser doesn't tell us whether the back or forward buttons were clicked, only that a POP happened. You can probably try doing something like saving some extra location state on each navigation with a counter, and then comparing the counter whenever you get a POP. But we don't have any plans to support something like that in core yet. It's definitely an interesting feature request though.
I'm trying to make breadcrumbs for an app, and wanted to distinguish
goBack
andgoForward
by the value ofaction
parameter. But any call togo
function returns aPOP
action.Is it possible to add something in the
listen
function to distinguish if whether it's agoBack
orgoForward
?The text was updated successfully, but these errors were encountered: