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

HPC-9975 Remove use-query-params #481

Open
wants to merge 5 commits into
base: HPC-9965
Choose a base branch
from
Open

HPC-9975 Remove use-query-params #481

wants to merge 5 commits into from

Conversation

Onitoxan
Copy link
Contributor

Nature of PR

  • Bug-fix
  • Hot-fix
  • Feature
  • Testing
  • 🟢 Package update
  • CI

Description

This PR is related to HPC-9965, read for more context.

In this PR we focus on removing use-query-params package. It became obsolete since with the use of react-router data API hooks (precisely, useSearchParams()) and using io-ts to write runtime validation, we can achieve the same objective.

We do this in order to reduce dependency of external libraries.

How to test changes

To test changes I would try to manipulate the URL to see how it reacts even to unexpected params and with wrong data on it.

Beside this, I would focus mainly on reading logic for useQueryParams() to verify it really covers corner cases

@Onitoxan Onitoxan added the ready for review All comments have been addressed, and the Pull Request is ready for review label Dec 16, 2024
@Onitoxan Onitoxan requested a review from a team as a code owner December 16, 2024 09:12
@Onitoxan Onitoxan changed the title HPC-9975 Remove use-query-params HPC-9975 Remove use-query-params Dec 16, 2024
Copy link

@unocha-hpc unocha-hpc left a comment

Choose a reason for hiding this comment

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

Checks have passed and this pull request is ready for manual review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review All comments have been addressed, and the Pull Request is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants