From f7ad9b67faa139581e9bffca0dfdde6ca8b1351e Mon Sep 17 00:00:00 2001 From: Jelle van Snik Date: Sun, 1 May 2022 23:32:33 +0200 Subject: [PATCH 1/3] fix desynced input field. causing mobile usage issues --- .gitignore | 1 + src/hooks/useSearchQuery.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index ae1ad7d8..3bd52c27 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ node_modules .env.development.local .env.test.local .env.production.local +.env npm-debug.log* yarn-debug.log* diff --git a/src/hooks/useSearchQuery.ts b/src/hooks/useSearchQuery.ts index 942dee91..f83e7715 100644 --- a/src/hooks/useSearchQuery.ts +++ b/src/hooks/useSearchQuery.ts @@ -13,6 +13,7 @@ export function useSearchQuery(): [MWQuery, (inp: Partial) => void] { const updateParams = (inp: Partial) => { const copySearch: MWQuery = { ...search }; Object.assign(copySearch, inp); + setSearch(copySearch); history.replace( generatePath(path, { query: From 3338a1610d22a7228e0b051186d6e553677b25e4 Mon Sep 17 00:00:00 2001 From: Jelle van Snik Date: Sun, 1 May 2022 23:38:34 +0200 Subject: [PATCH 2/3] public url fixes --- .env | 5 +++++ .gitignore | 1 - public/index.html | 14 +++++++------- 3 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 .env diff --git a/.env b/.env new file mode 100644 index 00000000..c459b80a --- /dev/null +++ b/.env @@ -0,0 +1,5 @@ +# this is to prevent warnings in webpack builds +GENERATE_SOURCEMAP=false + +# uncomment and add the following line to `.env.local` if you are running behind a proxy or on a subdirectory +# PUBLIC_URL=https://your-domain.com/directory-here diff --git a/.gitignore b/.gitignore index 3bd52c27..ae1ad7d8 100644 --- a/.gitignore +++ b/.gitignore @@ -17,7 +17,6 @@ node_modules .env.development.local .env.test.local .env.production.local -.env npm-debug.log* yarn-debug.log* diff --git a/public/index.html b/public/index.html index 16c77aec..0a105554 100644 --- a/public/index.html +++ b/public/index.html @@ -16,14 +16,14 @@ - - - - - + + + + + @@ -31,7 +31,7 @@ - movie-web + Movie-web From 90d7e6a792e284c3ede1a703876f3454795292dc Mon Sep 17 00:00:00 2001 From: Jelle van Snik Date: Sun, 1 May 2022 23:45:10 +0200 Subject: [PATCH 3/3] mate --- public/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 0a105554..9705cefa 100644 --- a/public/index.html +++ b/public/index.html @@ -31,7 +31,7 @@ - Movie-web + movie-web