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

[BUGFIX lts] ensure deserializeQueryParam is called for lazy routes #19697

Merged

Conversation

brendenpalmer
Copy link
Contributor

Currently it's possible for deserializeQueryParam to not be called on lazy routes, which can break deserialization of query params. As soon as getFullQueryParams is called it caches query params state regardless of whether all routes have resolved; this PR updates to only cache state if all routes have resolved, however we still process query params in both of these cases. I've also added a test-case here to prevent this from regressing in the future.

@rwjblue rwjblue changed the title ensure deserializeQueryParam is called for lazy routes [BUGFIX lts] ensure deserializeQueryParam is called for lazy routes Aug 5, 2021
Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

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

Thanks for working on this @brendenpalmer!

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