From f07e92fec8eaed238eb6404bbb984e7b18cc4153 Mon Sep 17 00:00:00 2001 From: Conduitry Date: Tue, 17 Apr 2018 05:25:44 -0400 Subject: [PATCH] fix computed properties in SSR mode with v2 syntax (#1349) --- src/generators/server-side-rendering/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 &&