Otília Porubiaková
06/07/2025, 11:39 AMMichael Ullock
06/09/2025, 1:38 PMInsightView
or useExecutionDataView
) is being re-created on every render, which causes the component to repeatedly trigger a new data fetch and update. Wrap any computed or constructed props (like filters or execution definitions) in useMemo
to ensure they remain stable across renders. This ensures that unless dependencies
change, the filters
array remains the same and does not trigger unnecessary re-renders. Also please chedck you’re not calling setState
inside useEffect
without a properly configured dependency array. Please also see the following article which I hope you’ll find useful:
https://typeofnan.dev/fix-the-maximum-update-depth-exceeded-error-in-react/