Replies: 1 comment
-
Your fragment for There's a docs page on this topic: https://gql-tada.0no.co/guides/fragment-colocation |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been trying to follow best practices for fragments, and have extracted a fragment I use in a file called
Dashboard.tsx
When I tried to run this in next, I get an error saying it can't use a fragment before it is defined, so I had to move the fragment from
Dashboard.tsx
toDashboards.tsx
Now, whenever I try and import something (like the dashboard mutation, that also lives in Dashboards), I get a warning saying
Unused co-located fragment definition(s) "DashboardFragment" in "@/src/components/Dashboards" ts(52003)
Why is this happening, and what does this error mean?
Beta Was this translation helpful? Give feedback.
All reactions