This commit is contained in:
Stephen Zhou 2026-05-08 14:59:00 +08:00
parent a2698a1c00
commit 4e62b048bd
No known key found for this signature in database

View File

@ -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.