()
| 63 | }; |
| 64 | |
| 65 | function useRegistryVersion() { |
| 66 | return useSyncExternalStore( |
| 67 | (fn) => { |
| 68 | listeners.add(fn); |
| 69 | return () => listeners.delete(fn); |
| 70 | }, |
| 71 | () => registryVersion, |
| 72 | () => registryVersion, |
| 73 | ); |
| 74 | } |
| 75 | |
| 76 | // Apply the dark theme early so the first paint matches the shell. |
| 77 | try { |