-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: allow Type or Type[] values in useStateUrlSearchParams
using typescript function overloading. Multiple values in the search params are provided by UrlSearchParams.getAll(). Also: * removes the useListHelpers hook added in previous commits -- it is no longer needed. * moves the useStateOrUrlSearchParam hook and TypesFilterData class to a separate search-manager/hooks.ts * sanitizes tag search parameters using oel RESERVED_TAG_CHARS * uses getBlockType to sanitize usage key search parameters
- Loading branch information
1 parent
9ae67f5
commit 2f28e3b
Showing
3 changed files
with
205 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.