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
dude you need to get better at asking for help
how is anyone supposed to answer this
It was so weird that I didn't even know how to ask
does time difference in database make infinite fetch?
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
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
I will shoot a screen recording video for you
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.