[]previous and next page

Pending UI: when the skeleton shows

pending shows after a delay when the data is not cached.

For agentsUpdated

pending shows after a delay when the data is not cached. The delay is:

  • the router's pendingMs (default 1000 ms), for every route;
  • a route's own pendingMs, which applies when the deepest matched route of the navigation sets one (a child without its own value inherits its parent's). In a file route: export const pendingMs = 0;.

pendingMs: 0 shows the skeleton at once, as Next's loading.tsx does. Use it on the route (or the router) whose skeleton should not wait.