refactor(reactivity): change _isRef to use refSymbol as key (#124)

This commit is contained in:
Carlos Rodrigues
2019-10-06 16:46:09 +01:00
committed by Evan You
parent 12b7557e8f
commit 8d70093802
2 changed files with 6 additions and 7 deletions

View File

@@ -45,7 +45,7 @@ export function computed<T>(
}
})
return {
_isRef: refSymbol,
[refSymbol]: true,
// expose effect so computed can be stopped
effect: runner,
get value() {