Skip to content

Commit

Permalink
Merge pull request #1350 from sveltejs/v2-ssr-computed
Browse files Browse the repository at this point in the history
fix computed properties in SSR mode with v2 syntax
  • Loading branch information
Rich-Harris authored Apr 18, 2018
2 parents 8e68723 + f07e92f commit c9ec155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generators/server-side-rendering/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit c9ec155

Please sign in to comment.