Rules Hub
Coding Rules Library
← Back to all rules
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
frontend ruleP2universalStack: react
naminghooksreadability
Give related hooks clearly distinct, layered names
Rename near-identical hook names so the transport layer and the consumer layer are obvious at a glance.
PR: hegnar-forum-web · org-mining-deep-2026-06Created: Jun 17, 2026
Bad example
Old codets
| 1 | useForumThreadsSSE() and useThreadListWithSSE() // easy to confuse |
Explanation (EN)
Objašnjenje (HR)
Good example
New codets
| 1 | useThreadStream() // low-level transport |
| 2 | useLiveThreadList() // high-level consumer |
Explanation (EN)
Objašnjenje (HR)