There's a recursive wrapping of data function which adds a new level each time SSR renders same component. This leads up to stuck references of asyncData variable that cannot be collected by GC.
What is the new behavior?
Under first attempt the original data function is cloned to internal options' property to ensure that each wrapping works on correct function.
What kind of change does this PR introduce?
Fixed memory leak of
asyncData
plugin.What is the current behavior?
There's a recursive wrapping of
data
function which adds a new level each time SSR renders same component. This leads up to stuck references of asyncData variable that cannot be collected by GC.What is the new behavior?
Under first attempt the original
data
function is cloned to internal options' property to ensure that each wrapping works on correct function.Checklist: