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

refactor: change all useSearchParams for static generation to use SearchParamsLoader #438

Merged

Conversation

P-manBrown
Copy link
Owner

@P-manBrown P-manBrown commented Dec 25, 2024

Summary

This pull request aims to standardize the use of SearchParamsLoader in conjunction with useSearchParams for static generation across various components. By doing so, we enhance the manageability and consistency of how query parameters are handled within the application.

Changes

  • Refactored the LogoutButton component to utilize SearchParamsLoader.
  • Updated the LoginQueryParamSnackbar to implement SearchParamsLoader.
  • Modified the ForgotPasswordQueryParamSnackbar to leverage SearchParamsLoader.
  • Adjusted the AccountQueryParamSnackbar to use SearchParamsLoader.

These changes ensure that all specified components now consistently handle query parameters through SearchParamsLoader.

Testing

Tested the following range in the test case list:

  • c-17-1
  • d-7-1
  • e-13-1
  • f-15-2

Related Issues (Optional)

Closes: #437

Notes (Optional)

None

@P-manBrown P-manBrown force-pushed the refactor/437-static-generation-use-searchparams-loader branch from bc9a013 to 1ab8372 Compare December 25, 2024 06:58
@P-manBrown P-manBrown merged commit 6195dea into main Dec 25, 2024
3 checks passed
@P-manBrown P-manBrown deleted the refactor/437-static-generation-use-searchparams-loader branch December 25, 2024 09:47
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.

refactor: change all useSearchParams for static generation to use SearchParamsLoader
1 participant