pmndrs / uikit

🎨 user interfaces for react-three-fiber
https://pmndrs.github.io/uikit/docs/
Other
2.68k stars 138 forks source link

Error when remounting containers #117

Closed Ledzz closed 1 month ago

Ledzz commented 2 months ago

When remounting some containers under specific condition the error happens: WebGL: INVALID_VALUE: bufferSubData: srcOffset + length too large

When this error happens, some elements disappear or lose their border radius. Please take a look at repro: https://codesandbox.io/p/sandbox/flamboyant-mountain-4ktyp3?workspaceId=43cc7f12-04db-4db6-a7e4-32c00d045658

There's an error in the console, and after the first remount, the white circle in the toggle (top right corner) disappears.

Ledzz commented 2 months ago

FYI for now I commented this line and there's no error