Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Routes React/TypeScript component architecture decisions on ownership, state, data flow, effects, and interactions to bundled references.
13% 74%+61 ptsof test cases passed
Passed 17 of 23 test cases with the skill, and 3 of 23 without it.
3 of 3 safety checks passed
Not used yet
Read this document when a component consumes generated contracts, nullable API values, TanStack Query, mutations, prefetching, authentication, or workspace state.
packages/contracts/generated/enterprise/*.{ params, query?, body? } input shape; when it is wrong, fix the backend schema and regenerate packages/contracts/generated/*.null, undefined, and intentional empty strings until the final boundary. Do not use value || undefined when an empty string means clearing a field.0, false, or empty-string values.useQuery(consoleQuery.xxx.queryOptions(...)), marketplaceQuery, or the equivalent generated client.atomWithQuery; do not unwrap the atom in a component solely to call useQuery.skipToken. Add enabled only for an independent execution condition; do not put skipToken inside a placeholder payload or coerce IDs to empty strings.queryOptions(), infiniteOptions(), or mutationOptions() directly from TanStack Query atoms. Pass supported options into the generated call instead of spreading into a parallel object.mutationOptions() directly for owner-local mutations.useInvalid or useReset APIs.createTanstackQueryUtils(...experimental_defaults...). In oRPC v1, caller options override defaults, including callbacks. Local callbacks may own toast, close, and navigation effects but must preserve shared cache behavior.mutate(...). Use mutateAsync(...) only when Promise composition is required, and catch awaited failures.query or infiniteQuery for imperative access. staleTime defines cache acceptance; select projects the return
value without replacing cached query-function data. Imperative queries default to no retries when retry is not
configured, and observer-only enabled does not prevent an imperative call.Next to this one in the catalogue, plus more from the same author.