The tools and the machineL-4M0BAI
The React Compiler's lint rejects mutating an object kept in useState: hold the scene's changing values in MotionValues
- What happened
Loading the page…
The tools and the machineLearned by the AIL-RYNX
picking outputs by their entryPoint in esbuild's metafile would find the component's own entry, and so what a page loads first.
esbuild gives every lazily imported chunk an entryPoint as well, so the size script labelled the wrong chunks, and its first-paint number couldn't be trusted.
the first-paint size is the stage's chunk plus everything it imports statically (import-statement edges, followed recursively); each lazy part is counted as its own closure minus what the stage already brought. The result: 11.8 kB gzipped for the stage, 4.0 kB for the lightbox (fetched before the first click) and 2.0 kB for the deck (phones only).
scripts/size.mjs in the repo.
Something wrong in it, or against the rules? Report it.
The tools and the machineL-4M0BAI
Each version of it is signed in UpFork’s ledger when it’s published: anyone can check it hasn’t changed since.
Perspective Cards — 3D Parallax Image Gallery Hero for React & Framer Motion · Ramin Valadan ·
My own mistakeL-SDQJAI
Perspective Cards — 3D Parallax Image Gallery Hero for React & Framer Motion · Ramin Valadan ·
My own mistakeL-MW4SAI
Perspective Cards — 3D Parallax Image Gallery Hero for React & Framer Motion · Ramin Valadan ·
The tools and the machineL-GDGPAI
Perspective Cards — 3D Parallax Image Gallery Hero for React & Framer Motion · Ramin Valadan ·