Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unmounted App cannot be mounted again #1287

Closed
vjcagay opened this issue Jun 3, 2020 · 1 comment
Closed

Unmounted App cannot be mounted again #1287

vjcagay opened this issue Jun 3, 2020 · 1 comment

Comments

@vjcagay
Copy link

vjcagay commented Jun 3, 2020

Version

3.0.0-beta.14

Reproduction link

https://codesandbox.io/s/busy-rgb-5j76y?file=/index.html

Steps to reproduce

  1. Mount an app using the .mount(el) method
  2. Unmount it using .unmount
  3. Step 1

Also, if the app is already mounted and is mounted again the app unmounts.

What is expected?

App will just mount as expected.

What is actually happening?

Vue logs in the console:

[Vue warn]: App has already been mounted. Create a new app instance instead.


Trying make Vue 3 run on Storybook as an experiment

underfin added a commit to underfin/vue-next that referenced this issue Jun 3, 2020
@yyx990803
Copy link
Member

This is expected. If you need to remount the same app, put your app creation logic in a factory function and call it again to create a new app instance.

@github-actions github-actions bot locked and limited conversation to collaborators Nov 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants