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.
Source: stackoverflow.com
Related Query
- ReactJS - Maximum update depth exceeded error
- ReactJS - error on maximum update depth exceeded despite conditional check
- ReactJS: Maximum update depth exceeded error
- React Maximum update depth exceeded error caused by useEffect only in test
- React App Login Error : Maximum update depth exceeded
- Maximum update depth exceeded in React error
- RESOLVE : react error : Maximum update depth exceeded
- Error with React Stripe split card elements: Maximum update depth exceeded
- ComponentDidUpdate - Maximum update depth exceeded - Error
- Maximum depth update exceeded error when navigating to routes react-router v6
- Why I'm getting maximum update depth exceeded error when setting data to context (React)
- Maximum update depth exceeded ReactJs componentDidMount
- ReactJS: using localStorage to save data breaks with error Maximum update depth exceeded
- React error in console - Maximum update depth exceeded when input length is more than 5
- Trying to pass state value from child to parent, getting Maximum Update Depth Exceeded error
- I am getting this error like index.js:1 Warning: Maximum update depth exceeded
- Maximum update depth exceeded error in react app
- React Typescript with hooks : Maximum update depth exceeded error
- React error --> Error: Maximum update depth exceeded
- I get an Error from React: Maximum update depth exceeded
- I receive this error while trying to implement JWT Authentication, Error: Maximum update depth exceeded
- React: how do I get rid of this Maximum update depth exceeded error
- ReactJs throwing maximum update depth error
- React does not recognize the `totalPrice and totalQuantity` prop on a DOM element and Maximum update depth exceeded Error
- ReactJS Error: Maximum update depth exceeded
- React getting Maximum update depth exceeded error
- React hooks Maximum update depth exceeded error
- React state update from Redux causing Maximum update depth exceeded error
- ReactNative: Maximum update depth exceeded error
- I am getting the following error while creating a signin page using react : Error: Maximum update depth exceeded
More Query from same tag
- How to print a table with nested loops in React?
- Material-UI SelectField onChange doesnt work
- Visual Studio 2019 Processes not shutting down, NodeJS issues
- Reactjs overide markdown types with react-markdown
- React app SPA on S3 AWS while refreshing the page shows 404 page
- OnClick in react portal works only after second click
- ReactJS defaultProps empty function declaration
- React way to "setState" in a pure ES2015 function
- How to generate path to imported file in React dynamically
- Generic button component in reactjs
- TypeError: instance.render is not a function (finishClassComponent)
- React-diagrams invisible
- React router Link tag color is not changing in build environment
- Trying to map an array of objects in react
- React.js setState of objects property from array
- Where to put timeout operator in Redux Observable fetching epic
- React - Testing component propTypes - expecting a failure
- React useState working other then expected
- react better solution for custom hooks when using setInterval and stale closures
- Launch.json - Wait for first debugger to load, then execute second
- How to style Material-UI v1 TextField similar to the v0 TextField
- react router 4 - how to make a root path with nested routes but fallback to not-found
- Use React Toast Notification in class component
- Why cant I export and use my custom js styles?
- Styled components in a hoc react component
- Error in react-spring with typescript for react
- Why React still render the child component with Error Boundary
- Property 'posts' does not exist on type 'Readonly<{}>'
- react - function inside useEffect
- React Materials UI - How can I close two dialogs at the same time