refactor: remove unused inheritRef option

This is technically a breaking change, but the option was not meant for public use
and ended up not solving the problem it was introduced for.
This commit is contained in:
Evan You
2020-06-30 21:47:12 -04:00
parent 5c490f1c45
commit 7886c267f7
6 changed files with 22 additions and 23 deletions

View File

@@ -180,10 +180,6 @@ export function renderComponentRoot(
}
root.transition = vnode.transition
}
// inherit ref
if (Component.inheritRef && vnode.ref != null) {
root.ref = vnode.ref
}
if (__DEV__ && setRoot) {
setRoot(root)