-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
fix(Transition): Make transition behavior in KeepAlive in dev-mode consistent with production-mode. #5557
base: main
Are you sure you want to change the base?
Conversation
…consistent with production-mode.
✅ Deploy Preview for vue-sfc-playground ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for vuejs-coverage ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for vue-next-template-explorer ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
is this same as #5268 ?🤔 |
Not exactly, because components are not uninstalled in keepalive, but I believe there should be a similar problem in 5268. |
Could you please resolve the conflicts? |
if ( | ||
__DEV__ && | ||
patchFlag > 0 && | ||
patchFlag & PatchFlags.DEV_ROOT_FRAGMENT |
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.
It will not work if keep comments in the production build.
fix: #5500
In this example, click Page A and then click Page B. Page A moves to the left, which is inconsistent with the name of the Transition node.This is due to the fact that
core/packages/runtime-core/src/componentRenderUtils.ts
Lines 221 to 229 in 5898629
It adjusts the position of the transition, so the last transition is used when moving. Now let's update it manually