What causes infinite fetch or query?

I was doing some editing on the schema, using trpc.category.getAll.useQuery() and suddenly infinite refetch started. Anyone know why?
6 Replies
cje
cje2y ago
dude you need to get better at asking for help how is anyone supposed to answer this
Çağlar
ÇağlarOP2y ago
It was so weird that I didn't even know how to ask does time difference in database make infinite fetch?
Lois
Lois2y ago
If you are unable to share the repo to help people reproduce the issue and understand the problem, please share at least a partial of your code for us to see what's going on
Çağlar
ÇağlarOP2y ago
I think it was a time related problem, because I was playing with timeStamps on prisma and it suddenly got into an infinite fetch loop I was just wondering what triggers this, does react query fetch by time? @cje I just have a table named category, when I add createdAt to this table, react query is going crazy.
I will shoot a screen recording video for you
Çağlar
ÇağlarOP2y ago
Çağlar
ÇağlarOP2y ago
When I add the createdAt column to this category table, it does an infinite fetch. When I add something different there is no problem, just createdAt.
Want results from more Discord servers?
Add your server