relayjs / relay-examples

A collection of sample Relay applications
MIT License
1.14k stars 429 forks source link

Next 13 example: Refactor to simplify #294

Open tomconroy opened 1 year ago

tomconroy commented 1 year ago

Hello! While adapting this pattern to my own use-case, I found some ways to simplify the pattern demonstrated here. This removes some unnecessary typing as well as the indirection of the additional components. I also believe the extra suspense boundaries are unnecessary.