News for hackers. Stuff that matters.
Re:Why, after 6 years, I'm over GraphQL by teaearlgraycold on Thursday May 30, 2024 @05:11PM (#40528759)
swr can handle the first issue you mentioned just fine.
Re:Why, after 6 years, I'm over GraphQL by rbalicki on Thursday May 30, 2024 @06:21PM (#40529398)
I'm not sure I follow. Are you saying swr allows for fragments and deduplication?

If you don't have fragments (in particular, if you have a single call to an swr hook at the root), then you have implicit deduplication. But then you run into the issue of it being unclear whether you can remove a given field when a subcomponent stops using it — you have to check whether any other subcomponent happens to use that.

And if you have many separate queries, you're architecting in waterfalls. But you have clarity about who uses which field.

Re:Why, after 6 years, I'm over GraphQL by teaearlgraycold on Thursday May 30, 2024 @07:43PM (#40530020)
I think you updated your comment.