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

chore: [app dir bootstrapping 9] replace useSearchParams with useCompatSearchParams #60

Closed
wants to merge 2 commits into from

Conversation

DmytroHryshyn
Copy link

@DmytroHryshyn DmytroHryshyn commented Oct 23, 2023

What does this PR do?

Applies replace-use-search-params codemod to provide consistent hook behaviour between [email protected] and [email protected] versions.
Codemod impact: 46 files changed. Estimated time saving ~1h

Requirement/Documentation

See navigation hooks comparison

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Chore (refactoring code, technical debt, workflow improvements)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How should this be tested?

  • Are there environment variables that should be set?
  • What are the minimal test data to have?
  • What is expected (happy path) to have (input and output)?
  • Any other important info that could help to test that PR

Mandatory Tasks

  • Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.

@github-actions
Copy link

github-actions bot commented Oct 23, 2023

Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link to collect XP and win prizes!

@DmytroHryshyn DmytroHryshyn changed the title Intuita/use compat search params chore: [app dir bootstrapping 9] replace useSearchParams with useCompatSearchParams Oct 23, 2023
@@ -1,6 +1,7 @@
{
"extends": "@calcom/tsconfig/base.json",
"compilerOptions": {
"jsx": "react",
Copy link

Choose a reason for hiding this comment

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

why was it needed?

Copy link
Author

Choose a reason for hiding this comment

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

one package that imports the hook throws error that we try to import jsx without specifying --jsx flag

@DmytroHryshyn DmytroHryshyn force-pushed the intuita/useCompatSearchParams branch from 7b93252 to e7c0c87 Compare October 24, 2023 12:57
@DmytroHryshyn DmytroHryshyn force-pushed the intuita/useCompatSearchParams branch from e6b3f01 to 3cd45f9 Compare October 24, 2023 15:02
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