wip(ssr): revert reactivity ssr paths

The perf gains are not worth the correctness issues these paths may lead to
This commit is contained in:
Evan You
2020-01-27 15:15:13 -05:00
parent cc47ae0118
commit 763faac182
4 changed files with 8 additions and 25 deletions

View File

@@ -56,10 +56,6 @@ export function computed<T>(
// expose effect so computed can be stopped
effect: runner,
get value() {
if (__SSR__) {
return getter()
}
if (dirty) {
value = runner()
dirty = false