-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Suspense causes attach to be called multiple times #2250
Comments
I’m seeing a similar bug of objects being duplicated. I have not found what’s specific LT causing it. But I notice the error happens on iOS chrome and safari on first load but not on reload. Also desktop doesn’t have the problem. I’m not using suspense or attach, but it seems related. |
@clementshimizu if you can make a reproduction on codesandbox or similar we can get a better comparison. Looking into the above issue for the moment. |
Merged a fix into #2465, this can be expected to be released in the next v9 candidate. |
When using the
attach
prop with a function, its attach function gets called multiple times without a detach when a suspended sibiling component resumes. This causes potentially too many objects to be created.Sandbox: https://codesandbox.io/s/append-bug-xslv50?file=/src/index.tsx
The text was updated successfully, but these errors were encountered: