Retree - v1.0.0
    Preparing search index...

    Function createRetreeConvexAction

    • Create a typed Retree Convex action function from a Convex client and action reference.

      Type Parameters

      Parameters

      Returns RetreeConvexAction<Action>

      A typed action function.

      Use this when you need a typed action helper outside a BaseConvexNode. Actions are imperative calls and do not emit Retree changes by themselves. Assign the action result into Retree state if the UI should update from it.

      const generateSummary = createRetreeConvexAction(
      client,
      api.ai.generateSummary
      );

      const summary = await generateSummary({ taskId });
      state.summary = summary; // ✅ emits if `state` is Retree-managed