I would mean that we do not need to have a data.ts file to import/re-export all data functions.
Maybe it would be also interresting to have a .data which regroup all getData, formatter, fragment or any other exported function/string from the data.tsx file
While reading about Faustjs, I saw a simple snippet which caught my eye.
The fact to expose the graphql query from the component, the same way we expose the slug and title from the component is quite neat.
I suggest to adapt the stack to expose the getData function directly from the component.
Find below the few changes we would need to do (not exaustive).
I would mean that we do not need to have a data.ts file to import/re-export all data functions.
Maybe it would be also interresting to have a
.data
which regroup allgetData
,formatter
,fragment
or any other exported function/string from thedata.tsx
file