-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fix(nextjs): Handle async params in url extraction #17162
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we test this somehow?
Tests for this are already in place, or do you mean the extract function? |
no, I mean can we assert on this not causing warnings/errors in the tests? I think (prior to this fix) they were logged out to stdout right? |
ah yeah I can see if there's a way to test that, I only tested it in a sample app |
dev-packages/e2e-tests/test-applications/nextjs-15/tests/async-params.test.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the test!
closes https://linear.app/getsentry/issue/JS-535/error-route-used-searchparams-sentry-skip-normalization-searchparams
closes #16542
Unfortunately we can't resolve the params promise within the template as making this async leads to some nasty RSC errors which we want to stay away from.