DEV Community

Cover image for React-Relay 2 years later , It's still awesome

React-Relay 2 years later , It's still awesome

Dennis kinuthia on February 13, 2024

Why GraphQL and Relay for your React app? Building complex UIs that fetch data efficiently can be a challenge. That's where GraphQL and ...
Collapse
 
drno profile image
Dr No

Thanks for writing, it was great reading you.

I have had many similar thoughts working with relay over the past years, I could connect to your experience and also learn a few more things.

Collapse
 
tigawanna profile image
Dennis kinuthia

i also recently saw another feature i had recently glossed over and nevr quite understod
the "@defer" decorator that let's a fragment get lazily loaded

Collapse
 
nurbol_n_caf464bc57f278da profile image
Nurbol N

Hi, thanks for the article.
How do you deal with generated readonly types if you pass them to editable form?
TS will not allow any editing due to readonly fields, and I dont want to use type assertions, looks like a hacky solution

Collapse
 
tigawanna profile image
Dennis kinuthia

there's that helper that lets you modify readonly arrays somewhere in there , let me know if you find a less hacky way