Sabitlenmiş Tweet
itamar
12.1K posts


@sseraphini @jantimon Sorry for the delay seeing this. Thanks for the feedback. If you haven't already would you mind opening an issue with details on exactly what's being type safety in your app? This will help us understand how to fill that gap.
English

@sseraphini do you use relay with @throwOnFieldError?
the relay team (especially @itamarok) promote the usage of @throwOnFieldError but it breaks the type-safety of the entire app
did you find a way to solve that?
github.com/facebook/relay…
English
itamar retweetledi

We’ve just released version 18.2.0 of Relay. This version includes compiler-driven codemods and expanded support for at-catch.
github.com/facebook/relay…
English
itamar retweetledi

@kmsaldana1 @sachee I am intentionally not saying normalized cache/store because I want to separate the mechanics of how the error is provided from my question - which is what the desired experience is.
That said, it can be implemented either at store-time, or at read-time.
English

@kmsaldana1 @sachee Thanks! I'll update here when it's fully ready to be used.
Yeah, so to clarify - I'm not talking about component tree propagation. Rather, each component that's querying this field - should that component see the updated error whether they're the primary querying comp.
English

@kmsaldana1 @sachee So that essentially gives you OOTB behavior like what you currently hand-roll. I think the question is - do we want that union value to propagate to secondary places where the same field is used.
English

@kmsaldana1 @sachee Yeah, this makes sense. so my @.catch directive in Relay (in development) - would allow you to do that - essentially a response type would be a union of {ok: false, errors: [] } or {ok: true, value: {...}} - and the default is to throw.
#relay-error-handling" target="_blank" rel="nofollow noopener">github.com/graphql/graphq…
English

@StatisticsFTW @StatisticsFTW would you envision these working more or less the same as resolvers? as in ErrorResolver?
English

@StatisticsFTW Yes, the idea of a callback of some kind to allow more control has come up, for sure.
English

@tobiastengler @StatisticsFTW This is interesting. I think when we talk about consistency sometimes we conflate store consistency with presented value consist. For @tobiastengler, store consistency is retained while value scopes to owner, for @StatisticsFTW store is consistent but that carries to the value.
English

@DaffyWegner רק מוודא שיש לכם איפה להישאר בחו"ל עד שתוכלו לחזור. אם לא - אנחנו פותחים את הבית שלנו בניו ג'רזי.
עברית








