-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Suspended component + transition #5148
Comments
Any help on this one is welcome! |
@posva |
Thanks @edison1105
|
@posva
|
@edison1105 @posva I was facing the same issue with reusable transitions so I made up another (much simpler in my opinion) playground to better reproduce it, until I found this opened issue. You can reproduce this by checking how the I can confirm that with #5195 I'm still having the issue (I rebased that PR into main and still the same thing). |
@edison1105 Another interesting finding: SFC link I think this issue is basically solvable if Suspense passes down $attrs, so the data-v* attribute also gets passed down. |
@ferferga |
I've made a PR to fix this.
I think this is as expected for now, when you switch to the DEV, you will see that there are warnings. but there is room for improvement. |
@edison1105 I can confirm that #10652 fixes my issue. To further help you guys get this finally fixed, I ran the following tests in the original @JobinJia 's playground (I downloaded the project from the SFC, set the following package.json
So I think it's safe to say that #10652 deprecates #5195 as it's a more broad solution (and with less code). As for the warning in DEV, my bad for not seeing it in playground (I usually run it in production by default). I agree this is probably something that needs discussion elsewhere, but my 2 cents here:
As a further follow-up of my use case (hopefully it helps to understand why it's good to have), here's my reusable transition component. It accepts as a
By having the
In order to workaround this, I need to extract the
Hopefully with this insight it's clearer why I think this is such a good thing to have. If you prefer to keep further discussion of this elsewhere, please let me know. |
@ferferga Thank you for the information you provided.
#5195 was submitted by me two years ago. At that time, my understanding was incorrect, so #5195 is not the correct solution. I have decided to close #5195 and keep #10652.
Agreed~ |
@edison1105 I opened a RFC here given this might be considered by some people as an API change. Please let me know if this is more fitting as an issue instead. |
Version
3.2.26
Reproduction link
SFC
Steps to reproduce
What is expected?
What is actually happening?
suspense fallback slot
, not thedefault slot
The text was updated successfully, but these errors were encountered: