leva icon indicating copy to clipboard operation
leva copied to clipboard

Controls of components inside R3F `Canvas` not rendering in `StrictMode`

Open dammafra opened this issue 4 months ago • 1 comments

Description When in StrictMode, controls added from components inside a @react-three/fiber Canvas do not display as expected. This behavior disappears when StrictMode is removed.

Reproduce StackBlitz Example

Expected behavior Controls should display correctly even when StrictMode is enabled.

Environment

  • react: 19.1.1
  • @react-three/fiber: 9.3.0
  • leva: 0.10.0
  • Browser: Chrome 139.0.7258.67
  • OS: macOS 15.6

dammafra avatar Aug 11 '25 08:08 dammafra

Seems like something with the css calculation in the ui. If you collapse/expand the ui corrects it. The parent to the inputs shows a height value, changing at all resolves.

DennisSmolek avatar Sep 23 '25 08:09 DennisSmolek