frontend-query-mutation
Installation
SKILL.md
Frontend Query & Mutation
Intent
- Keep API hooks in
controllers/API/queries/{domain}/as the organized source of truth. - Use
UseRequestProcessorfor consistent retry, invalidation, and error handling. - Use Axios
apiinstance for all HTTP calls (never rawfetchfor REST). - Use
performStreamingRequest()for streaming operations (build, chat). - Keep cache invalidation in mutation
onSettledcallbacks.
Architecture Overview
Langflow uses Axios + TanStack React Query v5 for data fetching. There is no oRPC or contract layer. The architecture is: