-
-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
Describe the bug
const { width, height, two } = useTwo();If the two.js canvas resizes, i.e. through fit() or other, the width and height in useTwo() do not change and no re-render happens, however if you manually view two.width or two.height then this will reflect the correct latest size
To Reproduce
call two.fit(), in such a way as to trigger resize
see that no re-render happens
Expected behavior
width and height should be in sync and trigger react re-render
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels