Closed ishan0102 closed 1 year ago
Implement prefetching by loading the next and previous pages. Adds user's current page to sessionStorage. Fixes a bug where refreshing the page would make the pagination UI disappear because dataLoaded wasn't being set true when querying cache.
sessionStorage
dataLoaded
Closes #5
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Implement prefetching by loading the next and previous pages. Adds user's current page to
sessionStorage
. Fixes a bug where refreshing the page would make the pagination UI disappear becausedataLoaded
wasn't being set true when querying cache.Closes #5