Skip to content

Are there any examples that show using queries/mutations outside the scope of the setup method? #42

Discussion options

You must be logged in to vote

Hi @RyanAtViceSoftware.
This library aims to provide hooks for the Vue composition API. You can replace all of the old class pieces that were used previously with the composition API easily.
You can take a look at https://v3.vuejs.org/guide/composition-api-introduction.html#why-composition-api to get the crash course on the composition API and how to use it.

That being said, you can combine composition API with old-style components but it's not advisable.
If you want to use this library you have to use hooks inside the setup function.

As for the examples and more documentation, it's in progress.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@RyanAtViceSoftware
Comment options

@RyanAtViceSoftware
Comment options

Answer selected by RyanAtViceSoftware
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants