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

A component suspended while responding to synchronous input #1832

Open
Nabeel-Mhd opened this issue Feb 10, 2025 · 1 comment
Open

A component suspended while responding to synchronous input #1832

Nabeel-Mhd opened this issue Feb 10, 2025 · 1 comment

Comments

@Nabeel-Mhd
Copy link

Nabeel-Mhd commented Feb 10, 2025

So I was using the useTranslation inside a Modal, I got this issue.
when I removed those lines of code which corresponds to useTranslation, Modal worked fine.

A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.

const { t, i18n } = useTranslation([ "common"]);

Even above line of code breaks the code.

@adrai
Copy link
Member

adrai commented Feb 10, 2025

Please provide a minimal reproducible example repository.

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

2 participants