outer-labs / react-forge-viewer

React component wrapper for Autodesk's Forge Viewer
MIT License
47 stars 23 forks source link

[Bug] Toggle viewer #11

Open sivabasker95 opened 4 years ago

sivabasker95 commented 4 years ago

Hi,

We integrated this package to our application and then we implemented toggling the viewer between 2D and 3D. On updating the view props components don't seem to be re-rendering correctly.

After debugging issue seems to be at views state. The value for the views states not assigned.

Solution:

After document successfully loaded, update views state.. image