Files
supabase/apps/studio/data/views/keys.ts
Ivan Vasilov c867205b20 chore: Migrate ViewsStore (#19975)
* 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.
2024-01-02 12:52:06 +01:00

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,
}