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: search params comparison #1965

Merged
merged 3 commits into from Feb 15, 2022
Merged

fix: search params comparison #1965

merged 3 commits into from Feb 15, 2022

Conversation

jca41
Copy link
Contributor

@jca41 jca41 commented Feb 15, 2022

closes: #1950

Explanation

state.location.search includes a leading ? so the presence of search params (even if they were constant) was revalidating the entire route loaders.

@jca41 jca41 changed the title 1950 - search params fix(1950): search params comparison Feb 15, 2022
@jca41 jca41 changed the title fix(1950): search params comparison fix: search params comparison Feb 15, 2022
@ryanflorence
Copy link
Member

very nice catch, thank you!

@ryanflorence ryanflorence merged commit a762516 into remix-run:dev Feb 15, 2022
@jca41 jca41 deleted the 1950-search-params branch February 15, 2022 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants