mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-26 19:46:59 -05:00
Fix: Resolve stale cache issues in moderation flow
This commit is contained in:
@@ -103,8 +103,12 @@ export function useQueueQuery(config: UseQueueQueryConfig): UseQueueQueryReturn
|
||||
};
|
||||
|
||||
// Create stable query key (TanStack Query uses this for caching/deduplication)
|
||||
// Include user context to ensure proper cache isolation per user/role
|
||||
const queryKey = [
|
||||
'moderation-queue',
|
||||
config.userId,
|
||||
config.isAdmin,
|
||||
config.isSuperuser,
|
||||
config.entityFilter,
|
||||
config.statusFilter,
|
||||
config.tab,
|
||||
|
||||
Reference in New Issue
Block a user