Loading...
Loading...
Guide for implementing Dify frontend query and mutation patterns with TanStack Query and oRPC. Trigger when creating or updating contracts in web/contract, wiring router composition, consuming consoleQuery or marketplaceQuery in components or services, deciding whether to call queryOptions() directly or extract a helper or use-* hook, handling conditional queries, cache invalidation, mutation error handling, or migrating legacy service calls to contract-first query and mutation helpers.
npx skill4agent add langgenius/dify frontend-query-mutationweb/contract/*queryOptions()mutationOptions()references/contract-patterns.mdreferences/runtime-rules.mduseQuery(...)useMutation(...)web/service/use-{domain}.ts{ params, query?, body? }mutate(...)mutateAsync(...)web/contract/console/*.tsweb/contract/marketplace.tsweb/contract/router.tsweb/service/client.tsweb/service/use-*.tsconsoleQuerymarketplaceQueryreferences/contract-patterns.mdreferences/runtime-rules.mdmutatemutateAsync