TanStackT
TanStack12mo ago
7 replies
wet-aqua

Bypass pendingMs for certain links

I'm looking for a way to bypass pendingMs, i.e. never fall back to a suspense boundary, for certain links. Our use case is that we have a page with lots of filters and knobs for the user to tweak the data that is displayed on the page. When clicking any of the links that apply those filters (as search params), we never want the page to suspend. However, we don't want to set a really high pendingMs for that page either just to avoid it, because then the page will not show it's loading state on entry, which we do want.

So basically we're looking for this behaviour:
* When navigating to that page, fall back pendingComponent until the data has loaded
* When navigating within that page (applying search params), never fall back to pendingComponent

Can this be achieved? I haven't found any mechanism that would allow me this level of control.
Was this page helpful?