mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-17 06:01:34 +00:00
fix(vue-app): call ssrContext.unsetMutationObserver only if it exists (#10132)
[release]
This commit is contained in:
parent
c1d02ea353
commit
777a4b7f50
@ -134,7 +134,10 @@ export default async (ssrContext) => {
|
||||
|
||||
<% if (isFullStatic && store) { %>
|
||||
// Stop recording store mutations
|
||||
ssrContext.unsetMutationObserver()
|
||||
// unsetMutationObserver is only set after all router middleware are evaluated
|
||||
if (ssrContext.unsetMutationObserver) {
|
||||
ssrContext.unsetMutationObserver()
|
||||
}
|
||||
<% } %>
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user