Retree - v1.0.0
    Preparing search index...

    Interface RetreeConvexMutationOptions<Mutation>

    Options accepted by a Retree Convex mutation function.

    interface RetreeConvexMutationOptions<
        Mutation extends MutationReference = MutationReference,
    > {
        withOptimisticUpdate?: (ctx: OptimisticUpdateContext<Mutation>) => void;
    }

    Type Parameters

    Index

    Properties

    withOptimisticUpdate?: (ctx: OptimisticUpdateContext<Mutation>) => void

    Called after the mutation promise is created so query nodes can apply an optimistic update and subscribe to the mutation outcome.