<keep-alive>增加清空缓存的方法 #693
TsingfunLee
started this conversation in
RFC Discussions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What problem does this feature solve?
被包裹的组件会在切换时缓存,有时,需要缓存,但有时,不需要缓存。 比如,一个编辑页组件,在和其他编辑页组件切换时需要缓存已编辑的内容,但是重新进入编辑页时应清空。
What does the proposed API look like?
import { clearCache } from 'vue'
clearCache()
Beta Was this translation helpful? Give feedback.
All reactions