Exactly! This is what react-query is doing i.e…
I guess you mean this hook
I see that the advantage of a Cell lies also in its functionality to prerender and before and afterQuery.
It would be nice to not only generate the cells but an optional hook. That could have the same functionalities as a cell with a simple import:
import ProjectsCell, {useProjects} from 'src/components/ProjectsCell'
Looking at the code I assume it should be possible to have the before and afterQuery, too.
This way I could seperate the rendering logic from the query logic.
( Also found this thread now showing redwood and relay mainly using hooks: Example App of Redwood with Relay - #4 by orta )