✅ setQueryParam:
This method adds or updates a query parameter in the URL, giving you the flexibility to modify search parameters on the fly. It’s perfect for dynamically applying filters or search settings based on user input.
✅ removeQueryParam:
This function removes a specific query parameter by its key, allowing you to fine-tune the URL by removing unnecessary filters or parameters while keeping the rest of the URL intact. It’s ideal for clearing specific filters without affecting others.
✅ clearAllQueryParams:
This method clears all query parameters, resetting the URL to its base route. It’s particularly useful for scenarios where you want to return to a clean state, such as resetting search results or filters.
Top comments (0)