Files
paseo/docs
Mohamed Boudra 9946c2598d perf(app): stop overlays and long sessions from slowing the app
A dev window open for a few hours took twice as long to open the sidebar
hover card as a fresh one. Three dependencies produced the cost:

- Unistyles 3.2.4 web rewrote the whole #unistyles-web text on every class
  add or remove, so the browser restyled the entire document several times
  per hover card. Backport upstream PR jpudysz/react-native-unistyles#1354
  (3.8.0): classes become CSSOM rule inserts and deletes. A full upgrade
  changes 109 native files and needs a newer Nitro runtime.
- @gorhom/portal kept all portal state in one context value at the app
  root, so each portal add, update and remove made React search every
  mounted fiber. Move the state to a store each PortalHost subscribes to
  with useSyncExternalStore. Also backport unreleased upstream PR
  gorhom/react-native-portal#62 so closing one overlay no longer remounts
  later overlays in the same host.
- React 19.2 development builds never cleared their render timings from
  the performance timeline (millions of entries, gigabytes of memory).
  Backport the React 19.3.0 clearMeasures change; React Native 0.86 pins
  React 19.2.

The explorer resize spec counted style tag text rewrites, which are always
zero after the backport, so it now counts rules added, removed or rebuilt.
2026-11-25 16:11:45 +07:00
..