securingsincity / react-ace

React Ace Component
http://securingsincity.github.io/react-ace/
MIT License
4k stars 603 forks source link

Warning: State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect(). #1963

Open menglingz opened 1 week ago

menglingz commented 1 week ago

Problem

When using editor, react devtools reported some errors: Warning: State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().

References

image