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

How to load again(reload) component in VueJs or destroy it and load again? #195

Open
ali-hallaji opened this issue Mar 23, 2020 · 3 comments

Comments

@ali-hallaji
Copy link

I have some issues with Aplayer and I create a post on Stackoverflow for it.
Please help me. the link is here

@SevenOutman
Copy link
Owner

I have some issues with Aplayer and I create a post on Stackoverflow for it.

Please help me. the link is here

You can set a key prop on the component you want to re-create, and change its value to trigger the re-create.

Just FYI, this underlying mechanism is also how the key prop in lists works for caching components.

@ali-hallaji
Copy link
Author

@SevenOutman Thank you so much for your plugin. But there are somethings is missing.
I need to access my info's current music from Vue. For this approach, I forced to define refs then take it info from its and It's not reliable sometimes it plays music from the previous playlist when changing the list. But I think you know a better way. Also, I need to run triggers when the events happened.

@ali-hallaji
Copy link
Author

I think there is a bug due to the component's computed property musicList being cached.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants