Skip to content

Using useDocument in a pinia store #1422

Closed Answered by posva
starcraft04 asked this question in Questions and Help
Discussion options

You must be logged in to vote

Like other composables you must call them within injectable contexts. In the case of pinia stores, this means at the root level of the function.

Replies: 1 comment 2 replies

Comment options

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

@posva
Comment options

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