[BF Cache]: skip lazyData fetch logic for inactive segments (#85142)
When `routerBfCache` is enabled, React's Activity API renders inactive route segments offscreen to enable instant back/forward navigation. However, the layout-router's lazy data fetching logic was incorrectly triggering fetchServerResponse calls for these offscreen segments when data was missing. This PR adds an isActive prop to InnerLayoutRouter that tracks whether a segment is currently visible via the existing `stateKey` check.
Showing
Please
register
or
sign in
to comment