sadmann7 / skateshop

An open source e-commerce skateshop build with everything new in Next.js.
https://skateshop.sadmn.com
MIT License
5.1k stars 731 forks source link

Trigger page load on pagination click #66

Open kavinvalli opened 11 months ago

kavinvalli commented 11 months ago

Clicking on a different page number in the products page, takes a few seconds to change the search parameter, so the page is basically the same till that point (does not trigger the loading page)

I wonder if there is a way to do it more instantly

sadmann7 commented 11 months ago

It will show loading state, if we put it within suspense and assign a random id to the suspense.

Was it slow in the dev?

I am seeing a few routes take a lot of time to load and update.

kavinvalli commented 11 months ago

No no, not in dev. So in prod, when I click on different page in the pagination component, it takes a few seconds to even load the loading state

sadmann7 commented 10 months ago

Yeah its kindda slow