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
As part of #67, @jakearchibald, @annevk, @smaug---- and I were thinking about how to allow developers to express reloads with app history, so that they could stop using location.
You could currently do appHistory.navigate(appHistory.current.url), but this is not very explicit. Also, doing this fails to set the "reload-triggered navigation" flag which is visible to service workers, or set the navigationType visible to navigation timing.
So adding something like appHistory.reload({ state, info }) makes sense.
But then, once we have that, we probably don't need appHistory.navigate({ state, info }) anymore. Which is good, because that method was always a bit confusing.
The text was updated successfully, but these errors were encountered:
Closes#112. Note that the behavior differs in that previously appHistory.navigate(options) would do a same-URL replace, which is subtly different from a reload in observable ways.
Some follow-up discussion in #117.
Closes#112. Note that the behavior differs in that previously appHistory.navigate(options) would do a same-URL replace, which is subtly different from a reload in observable ways.
Some follow-up discussion in #117.
As part of #67, @jakearchibald, @annevk, @smaug---- and I were thinking about how to allow developers to express reloads with app history, so that they could stop using
location
.You could currently do
appHistory.navigate(appHistory.current.url)
, but this is not very explicit. Also, doing this fails to set the "reload-triggered navigation" flag which is visible to service workers, or set the navigationType visible to navigation timing.So adding something like
appHistory.reload({ state, info })
makes sense.But then, once we have that, we probably don't need
appHistory.navigate({ state, info })
anymore. Which is good, because that method was always a bit confusing.The text was updated successfully, but these errors were encountered: