t3dotgg / chirp

https://xn--uo8h.t3.gg/
393 stars 61 forks source link

Posts are not not fetched anymore #32

Closed Raumain closed 1 year ago

Raumain commented 1 year ago

I was following the video and coding it on my side and at about 1:50:00 (Routing section for profile and post views), i noticed that the loader was still there after a few seconds/minutes. I then noticed that posts weren't fetched anymore. When i console.log(api.posts.getAll.useQuery()), the request seems to be paused instantly. ({..., isFetching: false, ..., isPaused: true}) I really don't know what's going on, i tried several things such as recreating the database or removing some codes to where it was working fine, i restarted the server and everything but nothing work. The database seems ok, i can see my records in prisma studio, and i don't see anything special in clerk. The only thing i did which might have cause bugs was to close my laptop with everything opened and then reopened it the next morning. Do you have any idea of what can cause that ?

Raumain commented 1 year ago

Well I just went sleeping as i did before the bug and now it's working fine again