+
+ {
+ "Check source code for this page. It has a generic type parameter passed to useSearchParamsState and enforces usage of the state inline with the provided type."
+ }
+
+
+
setState(k as keyof SearchParamsType, v)}
+ />
+
+ {JSON.stringify(state, null, 2)}
+
+ );
+}
diff --git a/apps/playground/src/app/with-zod/page.tsx b/apps/playground/src/app/with-zod/page.tsx
index 8b7cdc7..07473e4 100644
--- a/apps/playground/src/app/with-zod/page.tsx
+++ b/apps/playground/src/app/with-zod/page.tsx
@@ -1,3 +1,3 @@
export default function Page() {
- return