aboutsummaryrefslogtreecommitdiff
path: root/apps/web/src/lib
diff options
context:
space:
mode:
authorYash <[email protected]>2024-04-11 04:52:44 +0000
committerYash <[email protected]>2024-04-11 04:52:44 +0000
commit6dcc7d18c9be5e3a5e0a3ff60668424ee0158b4e (patch)
tree179aa936536510cc707368fc7c330c4c7fbdc3f8 /apps/web/src/lib
parentnovel editor (diff)
parentsave user ID with url to ensure that same website can be saved by users (diff)
downloadsupermemory-new-ui.tar.xz
supermemory-new-ui.zip
Merge branch 'main' of https://github.com/Dhravya/supermemory into new-uinew-ui
Diffstat (limited to 'apps/web/src/lib')
-rw-r--r--apps/web/src/lib/searchParams.ts22
1 files changed, 11 insertions, 11 deletions
diff --git a/apps/web/src/lib/searchParams.ts b/apps/web/src/lib/searchParams.ts
index b435295d..aae3f4c7 100644
--- a/apps/web/src/lib/searchParams.ts
+++ b/apps/web/src/lib/searchParams.ts
@@ -1,12 +1,12 @@
import {
- createSearchParamsCache,
- parseAsInteger,
- parseAsString
- } from 'nuqs/server'
- // Note: import from 'nuqs/server' to avoid the "use client" directive
-
- export const searchParamsCache = createSearchParamsCache({
- // List your search param keys and associated parsers here:
- q: parseAsString.withDefault(''),
- maxResults: parseAsInteger.withDefault(10)
- }) \ No newline at end of file
+ createSearchParamsCache,
+ parseAsInteger,
+ parseAsString,
+} from "nuqs/server";
+// Note: import from 'nuqs/server' to avoid the "use client" directive
+
+export const searchParamsCache = createSearchParamsCache({
+ // List your search param keys and associated parsers here:
+ q: parseAsString.withDefault(""),
+ maxResults: parseAsInteger.withDefault(10),
+});