Skip to content

v1.11.0

Choose a tag to compare

@github-actions github-actions released this 29 Jun 20:04
· 4 commits to main since this release

Minor Changes

  • f9d3d8d: Extend waitOn in useMutation to accept a predicate function (result: OperationResult, operationName: string | undefined) => boolean in addition to the existing string | DocumentNode | Array forms. Subscription results already flow through emitExchange, so the predicate works equally for queries and subscriptions. This enables mutations to wait for a specific subscription event (e.g. matching a returned entity ID) rather than a named live query re-emission.