feat: add streaming services filter (#3247)

* feat: add streaming services filter

* fix: count watch region/provider as one filter
This commit is contained in:
Ryan Cohen
2023-01-16 17:05:21 +09:00
committed by GitHub
parent cb650745f6
commit 1154156459
11 changed files with 532 additions and 28 deletions

View File

@@ -135,11 +135,11 @@ export const useUpdateQueryParams = (
export const useBatchUpdateQueryParams = (
filter: ParsedUrlQuery
): ((items: Record<string, string>) => void) => {
): ((items: Record<string, string | undefined>) => void) => {
const updateQueryParams = useQueryParams();
return useCallback(
(items: Record<string, string>) => {
(items: Record<string, string | undefined>) => {
const query = {
...filter,
...items,