npm / @react-three/fiber
@react-three/fiber
What changed in @react-three/fiber 9, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
7 breaking1 new APIs and options6 behavior and defaults23 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@react-three/fiber 937 changes
Breaking changes 7
Automatic sRGB conversion of texture props is removed; built-in materials handle color textures automatically. Custom materials or shaders can annotate color textures with colorSpace.
The gl callback receives constructor parameters rather than a canvas reference, and can return a promise for asynchronous renderer constructors.
Canvas Props is now named CanvasProps for clarity.
Hardcoded exports such as MeshProps are removed; access the element type through ThreeElements['mesh'].
The specialized Node helper types are removed and combined into ThreeElement.
The Canvas Props type is removed; use CanvasProps instead.
ThreeElement combines specialized Node helpers for extending JSX and accepts a single type representing the extended element instance.
New APIs and options 1
useLoader accepts an external loader instance, enabling more controlled pooling and setup.
Behavior and default changes 6
Pixel ratio updates automatically when moving between displays or zooming.
attach is applied on its first set; later dynamic updates to it are ignored.
Event priorities now use the same list as react-dom, aligning the priority of continuous and impulse events.
The reconciler can queue microtasks to defer work based on the priorities set for that work.
Uniforms objects now have a stable reference, and passed objects are copied into them. This prevents desync and allows inline uniform props and individual uniforms using pierce notation.
Passing a three.js class individually to extend can produce a component, reducing TypeScript boilerplate and JSX collisions.
Fixes and other changes 23
Dragging stays active when an object's args change, keeping pointer capture across instance reconstruction.
Removing an object requests a frame so it disappears immediately instead of lingering as a ghost.
Unmounted portals can now be cleaned up properly, preventing their root state from being retained by the parent and allowing garbage collection.
JSX type registration no longer causes React.ElementType props to collapse to never or break unrelated React types.
Activity visibility now works across R3F and React DOM boundaries, including when Activity wraps Canvas; hidden Canvas roots remain alive and visibility is bridged into scenes.
Canvas rerenders no longer reset runtime settings.
The renderer R3F creates is now disposed when its root unmounts; the notes clarify in which instances R3F auto-disposes.
R3F is compatible with React 19.3.0, so developers can run the latest React without conflicts; not all new React APIs are fully supported.
React roots are configured synchronously, with rendering gated on the renderer when it requires async behavior, avoiding out-of-sync issues.
A root remounted during the unmount grace period is no longer torn down.
Strict Mode no longer causes problems for the canvas.
Host props such as dispose and onUpdate now update properly, and unsetting them no longer unexpectedly overwrites imperatively updated values.
Instance reconstructions caused by args updates are properly batched, so one instance is not skipped when another bails out of updates.
Internal children are reordered correctly when React reorders children, preventing the internal map from drifting out of sync.
Unset pierced props now reset to the pierced prop's default value rather than to the base object.
Interactivity state now transfers seamlessly when instances are swapped.
R3F is compatible with React 19.0 through 19.2, including React 19.2's Activity feature.
A workaround adds compatibility with Expo SDK 54.
Passes the DevTools config through createReconciler to fix React DevTools.
Swapping elements when args or a primitive object prop changes is improved for structured children, preventing out-of-order updates or removal of children.
This is a compatibility release for React 19, with further performance, stability, and type improvements.
StrictMode is inherited from a parent renderer such as react-dom, so it no longer needs to be redeclared inside the Canvas.
Attach and constructor side-effects no longer fire repeatedly without proper cleanup during suspension.