A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vuejs/vue-next/issues/3761 below:

[compat] Lifecycle hooks are broken when using Vue.extend · Issue #3761 · vuejs/core · GitHub

Version

3.1.0-beta.2

Reproduction link

https://codesandbox.io/s/unruffled-mclaren-310ge?file=/src/main.js

Steps to reproduce
  1. Use Vue.extend to define a component with lifecycle hooks
  2. 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4