Subscribe on changes!

`_cache` is not initialised in SSR

avatar
Feb 4th 2023

Vue version

2774ba5

Link to minimal reproduction

https://sfc.vuejs.org/#eNqFkbtuhTAMhl/FygJHgmRHHKqqc9dOWSgnFI7IRbGhlRDv3lxoVbVDh1i2bH/27+zs0Tm+rYo1rCWl3dKT6qQBaLe6dy65KdD9bGCrrRkUiFwhvkpa8aM1hDj42RGgojUTZu2sJ9jhpsbZqCcbYqMMVTDBAaO3GoqwRBFr4xusQYKXsBtcf/eUe94p0RsonbfuowpsXCwhHBe4dlAmO5XFbd6KKqd4APXrQg+8vFwi40j2nPUc9f077C/8m9SKLLtjFct6w80cv6M14biJI88EStbASZYsCI+xZBORw0YIHIf4JXfk1r+J4HG/Gpq14gp1/ertOyofwJKl2dIc7PgEE4GV3A==

Steps to reproduce

Look at generated SSR code

What is expected?

_cache should be initialised

What is actually happening?

_cache[0] is referenced without ever initialising or importing the cache. This results in a hard crash on trying to render the component.

System Info

No response

Any additional comments?

No response