rsimp/jsxgraph-react

FunctionGraph do not unmount

phiresky opened this issue · 1 comments

When a FunctionGraph is removed from the JXGBoard component, it is still rendered. Looks like one would need to manually remove it from the board on componentWillUnmount?

Seems like this would be fixed by adding this.context.board.removeObject(this.functionGraph); to componentWillUnmount.