.agents/skills/frontend-code-review/references/dify-invariants.md
Use these stable Dify-specific runtime rules in addition to the generic review packs.
This file is not a place for active feature notes. Do not add rules for one branch, one PR, or a short-lived product decision such as a specific agent-v2, plugin, model-provider, or onboarding task. Keep a rule here only when all of these are true:
Flag:
web/app/components/workflow/nodes/[nodeName]/node.tsx importing workflow store hooks that are unavailable in RAG Pipe template rendering.useNodes / useEdges provide the actual node/edge source.Known failure mode: workflow node components can also render while creating a RAG Pipe from a template. In that context there may be no workflowStore provider, causing a blank screen.
Prefer React Flow hooks for node/edge UI consumption. Use store APIs only where the provider is guaranteed and the code path is workflow-only.