-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
fix(StyleContext): fix style cache duplicate creation #7029
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
const instance = getCurrentInstance(); | ||
let cache: CacheEntity; | ||
if (instance && instance.appContext) { | ||
const globalCache = instance.appContext?.config?.globalProperties?.__ANTDV_CSSINJS_CACHE__; |
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.
不用挂实例上吧,直接扔最外面就可以
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.
在第113的部分最外面有一个,不这样处理的话会不会影响到 #6912 这个issue
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.
有道理
@tangjinzhou 刚刚本地跑了一下,如果是他这种情况的话,还是会导致其他的实例无法正常的挂上样式 |
const instance = getCurrentInstance(); | ||
let cache: CacheEntity; | ||
if (instance && instance.appContext) { | ||
const globalCache = instance.appContext?.config?.globalProperties?.__ANTDV_CSSINJS_CACHE__; |
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.
有道理
挂实例上就没有问了吗 |
是的每一个vue的实例单独分配一个cache就好使 |
那就酱紫 |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
fix: #7023