Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Mark useQueryStateWithSelect as deprecated (#41707)

Joshen Lim90b77c3b23f7
diff --git a/apps/studio/hooks/misc/useQueryStateWithSelect.ts b/apps/studio/hooks/misc/useQueryStateWithSelect.ts
index 46f7a0624ce..31cbe6fa6bd 100644
--- a/apps/studio/hooks/misc/useQueryStateWithSelect.ts
+++ b/apps/studio/hooks/misc/useQueryStateWithSelect.ts
@@ -13,6 +13,10 @@ import { toast } from 'sonner'
* @returns Object with:
* - value: The result of select(selectedId) or undefined
* - setValue: Function to set/clear the selected ID in the URL
+ *
+ * @deprecated Avoid using this hook, and use nuqs directly
+ * Refer to this PR for more information: https://github.com/supabase/supabase/pull/41380
+ * as well as context on how to refactor to remove usage of this hook
*/
export function useQueryStateWithSelect<T>({
enabled,