-
Notifications
You must be signed in to change notification settings - Fork 49.6k
[Fizz] Name content inside "Suspense fallback" #33723
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
Conversation
} | ||
return createComponentStackFromType( | ||
componentStack.parent, | ||
'Suspense Fallback', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we can't get the actual type from props because it could be a lazy node?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue is that the real type is modeled as a symbol. However, we don't have a symbol for the fallback case. So I just gave it a string name since in practice we format them the same as built-ins.
6e1caf1
to
c8da2e9
Compare
Same as #33723 but for Fiber.
Content in Suspense fallbacks are really not considered part of the Suspense but since it does have some behavior it should be marked somehow separately from the Suspense content.
A follow up would be to do the same in Fiber.