Files
supabase/apps/studio/data/content/keys.ts
T
Joshen Lim a3ecf36c65 Show correct number of private snippets for SQL folders (#28411)
* Show correct number of private snippets for SQL folders

* Ensure that private snippet count is updated when sharing / unsharing queries

* Fix snippets caching issuie

* Fix move query modal showing more than just the project's folders
2024-08-07 17:38:17 +08:00

10 lines
500 B
TypeScript

export const contentKeys = {
list: (projectRef: string | undefined) => ['projects', projectRef, 'content'] as const,
folders: (projectRef: string | undefined, id?: string) =>
['projects', projectRef, 'content', 'folders', id].filter(Boolean),
resource: (projectRef: string | undefined, id?: string) =>
['projects', projectRef, 'content', id] as const,
count: (projectRef: string | undefined, type?: string) =>
['projects', projectRef, 'content', 'count', type].filter(Boolean),
}