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 UriHandler for Improved Readability and Robustness #501

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

gkatrakazas
Copy link
Member

This PR refactors the UriHandler component to enhance readability, maintainability, and error handling. The key changes include:

  1. Refactor Handle URL Logic
    Split the URL handling logic into smaller, reusable functions to improve code structure and clarity.

  2. Check for searchParams Existence
    Added a validation check to ensure the searchParams object exists before accessing its values, preventing potential runtime errors.

These changes aim to streamline the logic, reduce redundancy, and make the codebase more robust against edge cases, ultimately improving the developer experience and app reliability.

@gkatrakazas gkatrakazas requested a review from kkmanos January 27, 2025 13:27
@gkatrakazas gkatrakazas requested a review from pstamatop February 4, 2025 15:09
@gkatrakazas gkatrakazas marked this pull request as draft February 25, 2025 09:42
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