[compat] Lifecycle hooks are broken when using Vue.extend
Version
3.1.0-beta.2
Reproduction link
https://codesandbox.io/s/unruffled-mclaren-310ge?file=/src/main.js
Steps to reproduce
- Use Vue.extend to define a component with lifecycle hooks
- Mount this component anywhere
What is expected?
Lifecycle hooks should work
What is actually happening?
Component does not render and hooks don't trigger at all
This does produce a runtime error when trying to use a component that was defined via Vue.extend:
Uncaught TypeError: beforeMount.bind is not a function
at applyOptions