Software Development

Relay Best Practices

Best practices for writing idiomatic Relay code. ALWAYS use this skill when writing or modifying React components that use Relay for data fetching. Covers fragments, queries, mutations, pagination, and common anti-patterns. Use when you see `useFragment`, `useLazyLoadQuery`, `usePreloadedQuery`, `useMutation`, `usePaginationFragment`, `graphql` template literals, `react-relay` imports, or `__generated__/*.graphql` files. Also use when asked to explain Relay concepts, debug Relay issues, or review Relay code.

Publisher / source
Arize-ai/phoenix (found on GitHub top repositories)
Upstream record
Arize-ai/phoenix
Version
Version 1
Published
Publication review
Approved for publication
Content fingerprint
5d06769c1346d6775145f86141059513d8ef81607f1462fb9f1f536f87ac2e8f