type Updater<TInput, TOutput> = TOutput | ((input) => TOutput);
Defined in: node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:934
Either a plain value of type TOutput, or a function that receives TInput and returns TOutput. Used for example by setQueryData-style updaters, which accept either the new data directly or a function that computes it from the previous data. See functionalUpdate.
queryClient.setQueryData(['posts'], newPosts)// Or, using an updater function that receives the current data:queryClient.setQueryData(['posts'], (oldPosts) => oldPosts ? [...oldPosts, newPost] : oldPosts,)
Changelog October 18, 2026
v6.13.0 Oct 18
🐛[x] 🐛 fix: update dates service to correctly handle datetime parsing with offsets
✨[x] 🚀 feat: update WordPress roles declaration and audit
✨[x] 🚀 feat: update examples and scripts with new WordPress API usage and comments
✨[x] 🚀 feat: update documentation and configuration files
✨[x] 🚀 feat(tests): add a, AccessCapabilitySchema and AccessResourceSchema
… and 1 more
v6.12.0 Oct 18
✨[x] 🚀 feat: add subject resolution and ownership management for sessions closes #6
📚[x] 📝 docs: align ADR-0004, ADR-0006 and guides with the shipped code
🐛[x] 🐛 fix(docs): correct AssistantService JSDoc to the real method name
✨[x] ♻️ refactor(core): move useCreateStorageSignal to infrastructure
🧪[x] 🧪 test(coverage): establish Vitest coverage baseline and reporting