-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
chore: [app dir bootstrapping 9]: replace useSearchParams with useCompatSearchParams hook #12056
chore: [app dir bootstrapping 9]: replace useSearchParams with useCompatSearchParams hook #12056
Conversation
@DmytroHryshyn is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link to collect XP and win prizes! |
📦 Next.js Bundle Analysis for @calcom/webThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
e6b3f01
to
3cd45f9
Compare
b398e2c
to
7e47aa8
Compare
Hey there, there is a merge conflict, can you take a look? |
bdb2c4c
to
7d8e2e4
Compare
7d8e2e4
to
08b6d70
Compare
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.
All code and checks are looking good. Thank you for your contribution 🙏
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.
Merge activity
|
…patSearchParams hook (calcom#12056) Co-authored-by: zomars <zomars@me.com>
…patSearchParams hook (calcom#12056) Co-authored-by: zomars <zomars@me.com>
…patSearchParams hook (calcom#12056) Co-authored-by: zomars <zomars@me.com>
…patSearchParams hook (#12056) Co-authored-by: zomars <zomars@me.com>
What does this PR do?
Applies replace-use-search-params codemod to provide consistent hook behaviour between next@13.4.6 and next@13.5.4 versions.
Adds tests for useCompatSearchParams hook
Codemod impact: 46 files changed. Estimated time saving ~1h
useSearchParams in next@13.4.6 returns both
params
andsearchParams
when executed in Pages Router. On latest version of next js useSearchParams hook behaviour is same in Pages Router and App Router - it returns onlysearchParams
,params
are no more included.useCompatSearchParams is aimed to simplify migration by providing next@13.4.6 useSearchParams hook behaviour.
Requirement/Documentation
See navigation hooks comparison
Type of change
How should this be tested?
new useCompatSearchParams hook was covered with unit tests
Mandatory Tasks