mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 19:05:06 +03:00
* 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
10 lines
500 B
TypeScript
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),
|
|
}
|