fortune-sheet icon indicating copy to clipboard operation
fortune-sheet copied to clipboard

React 18, filter menu: maximum update depth exceeded

Open fantasticit opened this issue 3 years ago • 3 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. "@fortune-sheet/react": "^0.12.3",
  2. 右键展开菜单
  3. 点击筛选选区
  4. 点击单元格内选区按钮
  5. 可以看到报错 Uncaught Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots

image

Unhandled Runtime Error
Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.

Call Stack
checkForNestedUpdates
node_modules\.pnpm\[email protected][email protected]\node_modules\react-dom\cjs\react-dom.development.js (27292:0)
scheduleUpdateOnFiber
node_modules\.pnpm\[email protected][email protected]\node_modules\react-dom\cjs\react-dom.development.js (25475:0)
dispatchSetState
node_modules\.pnpm\[email protected][email protected]\node_modules\react-dom\cjs\react-dom.development.js (17527:0)

Additional context Add any other context about the problem here.

fantasticit avatar Jan 03 '23 01:01 fantasticit

Ok, will look into it

shuanhukexuejia avatar Jan 03 '23 03:01 shuanhukexuejia

guys. how can I change value in header of columns& (I mean instead of ABCDEF... I want 'First column name', 'Second column name' and so one...

cybermerlin avatar Jan 04 '23 20:01 cybermerlin

guys. how can I change value in header of columns& (I mean instead of ABCDEF... I want 'First column name', 'Second column name' and so one...

Still not support custom column name

shuanhukexuejia avatar Jan 05 '23 05:01 shuanhukexuejia