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 NextJS 15 issue with server side awaitable params and searchParams #86

Merged

Conversation

dimitribarbot
Copy link
Contributor

What is the purpose of this pull request? (put an "X" next to item)

[ ] Documentation update
[x] Bug fix
[ ] New feature
[ ] Other, please explain:

What changes did you make? (Give an overview)
I test if props.params and props.searchParams are Promise and if it is the case then I await them as defined in NextJS 15 documentation.

Which issue (if any) does this pull request address?
This PR should answer issue #85.

Is there anything you'd like reviewers to focus on?
I'm not sure that the tests whether props.params and props.searchParams are Promise are necessary, as awaiting an object returns that object in javascript (I tested this in a browser though). Please tell me if you think I should remove them.

Copy link
Owner

@aralroca aralroca left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for this contribution @dimitribarbot snaps can help

@aralroca aralroca merged commit 0e638ba into aralroca:main Dec 6, 2024
6 checks passed
@aralroca
Copy link
Owner

aralroca commented Dec 6, 2024

@dimitribarbot pre-released in 3.0.0-canary.5

@dimitribarbot dimitribarbot deleted the fix-nextjs-15-awaitable-params-issue branch December 7, 2024 06:59
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