Component evidence
Centralized React Query key factory for consistent cache management and invalidation.
// Source: https://github.com/mobazha/mobazha-unified | License: MPL-2.0 | Copyright under Patent Claims infringed by Covered Software in the absence of | Modified files must remain under MPL-2.0
// Modifications to this file must remain under MPL-2.0.
// Provided via justclaw.it.com; keep this notice with the code.
/**
* React Query Key Factory
*
* Centralized query key definitions for cache management, invalidation, and prefetching.
* Convention: each domain exposes `.all`, `.lists()`, `.detail(id)` for granular invalidation.
*/
export const queryKeys = {
products: {
all: ['products'] as const,
trending: () => [...queryKeys.products.all, 'trending'] as const,
featured: () => [...queryKeys.products.all, 'featured'] as const,
myListings: () => [...queryKeys.products
... (truncated -- full source via MCP)