Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

fix: routing #737

Merged
merged 2 commits into from
Jun 1, 2023
Merged

fix: routing #737

merged 2 commits into from
Jun 1, 2023

Conversation

eh-am
Copy link
Collaborator

@eh-am eh-am commented May 31, 2023

Closes #722

Funnily enough I couldn't reproduce in CI, but trust me bro, the issue is indeed happening.

But basically for redux-query-sync to work, the same history instance needs to be shared across the app. Didn't dive too deep, but it was affecting how other components that use the useLocation were rendered. Basically Sidebar wouldn't rerender when the route changes, therefore its navigation items wouldn't include the query parameter!

@eh-am eh-am marked this pull request as ready for review May 31, 2023 16:30
Copy link
Collaborator

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eh-am eh-am merged commit 8565aa6 into main Jun 1, 2023
@eh-am eh-am deleted the fix/routing branch June 1, 2023 09:13
simonswine pushed a commit to simonswine/pyroscope that referenced this pull request Jun 30, 2023
* share same history instance
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Routing doesn't keep query params
2 participants