Completely unload and reload forge viewer

安稳与你 提交于 2019-12-01 11:38:47
Philippe

The static method Autodesk.Viewing.Initializer can only be called once the subsequent times it will not return. All other viewer methods need to be invoked every time your component loads. So you need to refactor your code a bit.

My app is using React and I save a boolean in the appState to avoid calling that Initializer twice if it has been initialized already.

Hope that helps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!