このコミットが含まれているのは:
2026-10-27 12:39:32 +09:00
コミット 2706789fa4
10個のファイルの変更、94行の追加、30行の削除
+9
ファイルの表示
@@ -157,6 +157,15 @@ export const sessionKeys = {
settings: (id: number) => ['session', id, 'settings'] as const,
themeSlots: (id: number) => ['session', id, 'themeSlots'] as const }
export const isAuthorityDependentQuery = (key: readonly unknown[]): boolean => {
// Only the public locale catalogue and the explicitly synchronised session survive.
const publicLocaleFlg = key.length === 2
&& key[0] === localesKeys.index[0] && key[1] === localesKeys.index[1]
const currentSessionFlg = key.length === 2
&& key[0] === sessionKeys.current[0] && key[1] === sessionKeys.current[1]
return !publicLocaleFlg && !currentSessionFlg
}
export const theatresKeys = {
show: (id: string, locale: LocaleCode) => ['theatres', locale, id] as const,
programmes: (id: string, locale: LocaleCode) =>