Skip to content

React Compatibility Issue in Official RTK Query Pagination Example - Toast Rendering Error #4954

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
100pearlcent opened this issue Apr 25, 2025 · 0 comments

Comments

@100pearlcent
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant