Files
supabase/apps/studio/data/views/keys.ts
Alaister Young 3a27070dc2 chore(perf): table editor query optimisation (#30184)
* chore: table editor query optimisation

* removed unused queries and fix invalidations

* address feedback

* fix filtering for foreign tables

* Update

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-10-31 15:20:40 +08:00

6 lines
237 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,
}