mirror of
https://github.com/supabase/supabase.git
synced 2026-07-07 12:59:40 +08:00
* Move useEncryptedColumns hook and use it in the TableGridEditor. * Convert the viewsQuery to use data/fetchers. It also handles invalidation of schemas. * Invalidate the view when deleting a column or a table. * Use the new query function in VaultStore. * Remove the viewStore. * Fix two more edge cases. Add comments for it.
8 lines
354 B
TypeScript
8 lines
354 B
TypeScript
export const viewKeys = {
|
|
list: (projectRef: string | undefined) => ['projects', projectRef, 'views'] as const,
|
|
listBySchema: (projectRef: string | undefined, schema: string) =>
|
|
[...viewKeys.list(projectRef), schema] as const,
|
|
view: (projectRef: string | undefined, id: number | undefined) =>
|
|
[...viewKeys.list(projectRef), id] as const,
|
|
}
|