Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react table Maximum update depth exceeded.

1: Don't forget to either wrap columns inside useMemo or define columns outside the component.

This means that every option you pass to useTable should be memoized either via React.useMemo (for objects) or React.useCallback (for functions).

2: 
For me, I had forgotten to include an empty array argument (or a dependency array) in the useMemo call. Without this, useMemo is seemingly useless.

github issue link: https://github.com/TanStack/react-table/issues/2369
Source by github.com #
 
PREVIOUS NEXT
Tagged: #react #table #Maximum #update #depth
ADD COMMENT
Topic
Name
6+9 =