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

Don't update route if it hasn't changed #3134

Merged
merged 1 commit into from
Apr 9, 2018
Merged

Conversation

fbarl
Copy link
Contributor

@fbarl fbarl commented Apr 9, 2018

Fixes browser history when deep linking into node details with time context in https://github.com/weaveworks/service-ui/pull/2254.

The problem was that the URLs with the same hash, but permutted keys would be treated as different ones, so we'd end up in routing loops under some circumstances.he

My solution was to use json-stable-stringify helper in some parts where JSON.stringify was previously used. We might want to generalize this policy whenever encoding Scope JSON state - #3133.

Let's see if https://github.com/weaveworks/service-ui/issues/2021 also gets fixed by this change.

@fbarl fbarl self-assigned this Apr 9, 2018
@fbarl fbarl requested a review from jpellizzari April 9, 2018 07:51
@fbarl fbarl merged commit e8f423a into master Apr 9, 2018
@fbarl fbarl deleted the use-json-stable-stringify branch April 9, 2018 18:44
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.

2 participants