Skip to main content

Documentation Index

Fetch the complete documentation index at: https://kubo-47e69177.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Troubleshooting

”Action context factory is not configured”

Cause: setActionContext was not executed on server bootstrap. Fix:
app/bootstrap.server.ts
import { setActionContext } from "@zapaction/core";

setActionContext(async () => ({ userId: "demo" }));

useActionQuery requires readPolicy='read-only'

Cause: missing or invalid readPolicy option. Fix:
components/panel.tsx
useActionQuery(listTodos, {
  input: {},
  queryKey: ["todos"],
  readPolicy: "read-only"
});

Tags do not invalidate expected queries

Cause: tag registry mismatch between tags and query keys. Fix:
app/providers.tsx
setTagRegistry({
  todos: [["todos"]],
  user: ({ input }) => [["users", input?.userId ?? "unknown"]]
});

Client-side boundary reset throws

Cause: useActionErrorReset was used outside boundary fallback. Fix: call the hook only inside fallback content rendered by ActionErrorBoundary.

Build/runtime checks

terminal
pnpm build
pnpm typecheck
pnpm test