redux-toolkit
redux-toolkit copied to clipboard
React Compatibility Issue in Official RTK Query Pagination Example - Toast Rendering Error
The official RTK Query pagination example hosted on CodeSandbox throws the following runtime error:
TypeError: (0 , $csb__react_dom.render) is not a function
Stack Trace Snippet:
TypeError: (0 , $csb__react_dom.render) is not a function
at new Toaster (chakra-ui/toast/dist/esm/toast.class.js:76:32)
...
I assume this issue appears to be related to the usage of ReactDOM.render, which has been deprecated in React 18+ in favor of ReactDOM.createRoot.