Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: update debounce ms

steven9227ca5b5b78
diff --git a/web/src/components/SearchBar.tsx b/web/src/components/SearchBar.tsx
index c6ed368a1..db4925b7d 100644
--- a/web/src/components/SearchBar.tsx
+++ b/web/src/components/SearchBar.tsx
@@ -19,13 +19,12 @@ const SearchBar = () => {
() => {
filterStore.setTextFilter(queryText.length === 0 ? undefined : queryText);
},
- 200,
+ 1000,
[queryText]
);
const handleTextQueryInput = (event: React.FormEvent<HTMLInputElement>) => {
- const text = event.currentTarget.value;
- setQueryText(text);
+ setQueryText(event.currentTarget.value);
};
return (
diff --git a/web/src/router/index.tsx b/web/src/router/index.tsx
index 4c886f670..e94b1cf75 100644
--- a/web/src/router/index.tsx
+++ b/web/src/router/index.tsx
@@ -69,11 +69,6 @@ const router = createBrowserRouter([
element: <Home />,
loader: () => initialUserStateLoader(),
},
- {
- path: "explore",
- element: <Explore />,
- loader: () => initialUserStateLoader(false),
- },
{
path: "review",
element: <DailyReview />,
@@ -99,6 +94,11 @@ const router = createBrowserRouter([
element: <Setting />,
loader: () => initialUserStateLoader(),
},
+ {
+ path: "explore",
+ element: <Explore />,
+ loader: () => initialUserStateLoader(false),
+ },
],
},
{