4 ms·
>That’s not really all that different to everyone moving their CSS-in-JS and GraphQL queries out of a functional component body though, is it? I suggest you to
by danabramov 8y ago
>That’s not really all that different to everyone moving their CSS-in-JS and GraphQL queries out of a functional component body though, is it?
I suggest you to take the `useSubscription` example from the "diamond problem" section and try to convert it to your proposed API. I think you'll see why it falls apart.
(Don't forget effects would also need keys.)