mirror of
https://github.com/langgenius/dify.git
synced 2026-05-10 05:56:31 +08:00
update
This commit is contained in:
parent
a2698a1c00
commit
4e62b048bd
@ -34,6 +34,10 @@ Follow existing project patterns first. Use these rules to resolve unclear compo
|
||||
|
||||
- Prefer `Link` for normal navigation. Use router APIs only for command-flow side effects such as mutation success, guarded redirects, or form submission.
|
||||
|
||||
## Effects
|
||||
|
||||
- Do not use `useEffect` directly in components. If an effect is genuinely unavoidable, encapsulate it in a purpose-built hook so the component consumes a declarative API instead of managing the effect inline.
|
||||
|
||||
## Performance
|
||||
|
||||
- Avoid `memo`, `useMemo`, and `useCallback` unless there is a clear performance reason.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user