SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

0 0 87 JavaScript

[Fiber] track stylesheet preloads when explicitly preloaded (#36386)

Previously stylesheet resources would omit connecting with preloads
inserted via `preload` which caused unecessary suspension of commits
since the stylsheet resource would attempt to load the stylesheet again
and delay the initial commit or commit a fallback (depending on whether
the current screen should remain). This missing piece is that if you
preload a stylesheet you must be able to use that sheets loading state
when determining if the stylesheet is already loaded or not.

This adds a pending indicator on client inserted prelaod links. We still
assume SSR'd preloads are already loaded.
J
Josh Story committed
d5736f098edee62c44f27b053e6e48f5fa443803
Parent: dd45307
Committed by GitHub <noreply@github.com> on 5/7/2026, 5:48:57 PM