mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
fix: keep-alive component data should not be updated (#5188)
This commit is contained in:
parent
3e678793b9
commit
1ea86617ca
@ -491,6 +491,7 @@ function fixPrepatch(to, ___) {
|
||||
if (
|
||||
instance.constructor._dataRefresh &&
|
||||
Components[i] === instance.constructor &&
|
||||
instance.$vnode.data.keepAlive !== true &&
|
||||
typeof instance.constructor.options.data === 'function'
|
||||
) {
|
||||
const newData = instance.constructor.options.data.call(instance)
|
||||
|
Loading…
Reference in New Issue
Block a user