diff --git a/src/generators/server-side-rendering/index.ts b/src/generators/server-side-rendering/index.ts index 3d83ddfb5bdc..41d4ffda116c 100644 --- a/src/generators/server-side-rendering/index.ts +++ b/src/generators/server-side-rendering/index.ts @@ -139,7 +139,7 @@ export default function ssr( ${computations.map( ({ key, deps }) => - `state.${key} = %computed-${key}(${deps.map(dep => `state.${dep}`).join(', ')});` + `state.${key} = %computed-${key}(${generator.v2 ? 'state' : deps.map(dep => `state.${dep}`).join(', ')});` )} ${generator.bindings.length &&