score:1

i don't know exactly why this is happening, but if i disable updating on your lessonlocation component, the error stops:

export default class lessonlocation extends react.component {
  shouldcomponentupdate() {
    return false;
  }

  render() {
    const data = {
      label: 'hello',
      value: 'hello'
    }

    return <tree data={data}></tree>
  }
};

it has to do with the <tree /> updating. i don't know why it even updates, it doesn't seem like it needs the data you use. you should try to implement a check into shouldcomponentupdate() yourself if you need it to update based on the data.


Related Query

More Query from same tag