We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How do I get an empty query string off the URL?
Add with data then try to remove.
No response
The text was updated successfully, but these errors were encountered:
You can set the empty string as default value and use showDefaults: false
Sorry, something went wrong.
Strange, that is what I'm doing. I saw that suggestion in another issue. Once I select and then deselect, it still ends up with ?filter_category=
const selected = queryParam(`filter_${section.id}`,ssp.string(''),{ showDefaults: false });
<input id={`filter-${section.id}-${optionIdx}`} value="{option.value}" type="checkbox" bind:group={$selected} class="h-4 w-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500" />
Any thoughts? Awesome script, by the way.
I don't think you can use a string to bind to a checkbox group...if you prepare a reproduction I can try to take a look
No branches or pull requests
Describe the bug
How do I get an empty query string off the URL?
Reproduction
Add with data then try to remove.
Logs
No response
The text was updated successfully, but these errors were encountered: