Skip to content

Conversation

Bjornar97
Copy link

Exports the functions loadScript and unloadScript, so they can be used directly by importing them. The previous behavior of using this.loadScript still works.

Feel free to make any changes you see fit.

Exports the functions loadScript and unloadScript, so they can be used directly by importing them. The previous behavior of using this.loadScript still works.
@Bjornar97
Copy link
Author

The reason for exporting the functions btw, is that "this" is not available inside the setup function in components.

@Bjornar97
Copy link
Author

Hi. Is there an update on getting this merged available?

Copy link
Owner

@tserkov tserkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @Bjornar97! Sorry for incredible delay! I've made a few minor requests to the code, and after they're made I'll smash that merge button.

Thanks for taking care of Composition API support!

@Bjornar97 Bjornar97 requested a review from tserkov May 30, 2021 16:29
@tserkov tserkov merged commit 380521d into tserkov:vue3 May 30, 2021
@tserkov
Copy link
Owner

tserkov commented May 30, 2021

Lgtm, thanks again!

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

Successfully merging this pull request may close these issues.

2 participants