Skip to content
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: memory leak in SSR #7871

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

InvincibleJun
Copy link

@InvincibleJun InvincibleJun commented Oct 9, 2024

To fix #7866

@InvincibleJun
Copy link
Author

@tangjinzhou please see

@@ -12,9 +12,9 @@ export default function useClientCache<CacheType>(
const styleContext = useStyleInject();
const fullPathStr = shallowRef('');
const res = shallowRef<CacheType>();
watchEffect(() => {
watch([() => prefix, () => keyPath.value], () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prefix 不是响应式的,这里不用 watch

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nuxt3 SSR with antd design v4 have memory leak problem
2 participants