Run yarn
to install packages and then yarn dev
to run.
- In RelayEnvironment.ts we're enabling the error handling feature flags
ENABLE_FIELD_ERROR_HANDLING
andENABLE_FIELD_ERROR_HANDLING_THROW_BY_DEFAULT
. - Also in RelayEnvironment.ts we are returning mocked responses, where we're simulating an error only for the second query
AppReviewsQuery
. - In App.tsx we're defining two nested queries, where only the inner one fails. Since both queries share the same signature though
productById(id: "product-1")
, the errors of the second query are (wrongfully?) propagated to the first query.