Optionalprefixes: string[] | PrefixResolverEither an array of string prefixes (e.g. ['/invoice', '/invoice/items']) or a function returning an array of string prefixes.
Hooks into the backend action lifecycle to clear relevant cache entries after a mutation.
The object that was modified.
The backend action executed (CREATE, UPDATE, DELETE).
Optionalparams: anyAdditional execution context.
Middleware that intercepts backend data modifications to trigger cache invalidation.