Open
Description
It seems like the Plot component mutates its props (at least layout
) instead of cloning the data.
Mutation of props is to me unexpected (and undesired) behavior for a react component.
If for instance the layout is stored in the state of a component and then fed to the Plot component as a prop, like
render() {
<Plot
layout={this.state.layout},
...
/>
we will have a problem, since this.state
only should be updated with the react setState()
method.
Metadata
Metadata
Assignees
Labels
No labels