Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(history-service): navigation after reload #175

Merged
merged 17 commits into from
Dec 19, 2018

Conversation

unstubbable
Copy link
Member

@unstubbable unstubbable commented Dec 13, 2018

fixes #171

Instead of using a memory history under the hood for the consumer history, and storing the entries in session storage, we just compute the consumer path from the root location, and store all consumer states in the root history state.

This change also removes the memory history. We don't need a facade for memory histories, since they don't affect the window location and browser history. For server-side rendering, we provide a static history instead.

@unstubbable unstubbable requested a review from clebert December 13, 2018 11:09
@unstubbable unstubbable force-pushed the fix-navigation-after-reload branch from 2229f09 to 213711b Compare December 13, 2018 11:11
@unstubbable unstubbable force-pushed the fix-navigation-after-reload branch 4 times, most recently from 4330bc1 to a1cdeb0 Compare December 14, 2018 15:31
@unstubbable unstubbable requested a review from clebert December 14, 2018 15:31
@unstubbable unstubbable force-pushed the fix-navigation-after-reload branch from a1cdeb0 to 6d1a8e2 Compare December 17, 2018 09:54
@unstubbable unstubbable force-pushed the fix-navigation-after-reload branch 2 times, most recently from 1470392 to b09e473 Compare December 17, 2018 16:12
@unstubbable unstubbable requested a review from clebert December 17, 2018 16:22
@unstubbable unstubbable force-pushed the fix-navigation-after-reload branch from f53fc29 to 68c9185 Compare December 18, 2018 17:11
@unstubbable unstubbable requested a review from clebert December 18, 2018 17:18
@unstubbable unstubbable requested a review from clebert December 19, 2018 15:09
clebert
clebert previously approved these changes Dec 19, 2018
Instead of using a memory history under the hood for the consumer history,
and storing the entries in session storage, we just compute the consumer
path from the root location, and store all consumer states in the root
history state.

This change also removes the memory history. We don't need a facade for
memory histories, since they don't affect the URL and browser history.
For server-side rendering we will provide a static history instead
(in a separate upcoming PR).
This also moves the destroy method from the base history to the browser
history, since the static history won't support the listen method.
This increase is intended and caused by the addition of fast-deep-equal.
@clebert clebert merged commit b37eecf into master Dec 19, 2018
@clebert clebert deleted the fix-navigation-after-reload branch December 19, 2018 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

History Service: Reload bug
2 participants