Kitware / react-vtk-js

Declarative library exposing vtk.js visualization pipeline as React components
https://kitware.github.io/react-vtk-js/
77 stars 24 forks source link

[Bug Docs] ObjViewer Load Error! #119

Open Mt-Youya opened 1 year ago

Mt-Youya commented 1 year ago

code here

I copy docs "https://github.com/Kitware/react-vtk-js/blob/master/usage/src/Geometry/OBJViewer.jsx" code . But i got Error!

floryst commented 1 year ago

You can try the beta release (https://github.com/Kitware/react-vtk-js/releases/tag/v2.0.0-beta.10) to see if that fixes your issue. Note that the beta release is not 100% ready for prime-time.

A quick fix would be to guard against an empty/deleted renderer in resetCamera().