When we initially decrypt the history state so that the router can restore any remembered data, we were setting it as the current history in the History class, causing the page to be loaded from that state rather than the initial page props on the page.
The page would then load the initial page props, but you'd get a flash of stale data.
This fixes that issue by storing the restore data as a separate one-time-use property.
When we initially decrypt the history state so that the router can
restore
any remembered data, we were setting it as thecurrent
history in theHistory
class, causing the page to be loaded from that state rather than the initial page props on the page.The page would then load the initial page props, but you'd get a flash of stale data.
This fixes that issue by storing the
restore
data as a separate one-time-use property.