-
-
Notifications
You must be signed in to change notification settings - Fork 140
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.
mungojam, AlexanderZvyagin, JamesRamm, janosh, Yohanna and 13 morejoyser and forman
Metadata
Metadata
Assignees
Labels
No labels