Skip to content
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

[Tabs] Components crashed when used with React 18 & Suspense #33276

Closed
2 tasks done
mnajdova opened this issue Jun 24, 2022 · 0 comments · Fixed by #33277
Closed
2 tasks done

[Tabs] Components crashed when used with React 18 & Suspense #33276

mnajdova opened this issue Jun 24, 2022 · 0 comments · Fixed by #33277
Labels
bug 🐛 Something doesn't work component: tabs This is the name of the generic UI component, not the React module!

Comments

@mnajdova
Copy link
Member

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 😯

When used together with Suspense, it crashes when Suspense is showing fallback, as the refs' current is null. It is similar to #32640

Codesandbox: https://codesandbox.io/s/awesome-moore-y9zl1o?file=/src/app.js

Expected behavior 🤔

Should not crash

Steps to reproduce 🕹

Steps:

  1. Open https://codesandbox.io/s/awesome-moore-y9zl1o?file=/src/app.js
  2. Click on ToggleView
  3. See it crashes 💣

Context 🔦

No response

Your environment 🌎

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
@mnajdova mnajdova added bug 🐛 Something doesn't work component: tabs This is the name of the generic UI component, not the React module! labels Jun 24, 2022
@mnajdova mnajdova added this to the React 18 milestone Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: tabs This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant