Invalid value used as weak map key #460
Answered
by
posva
husayt
asked this question in
Help and Questions
-
Hi, Not sure if this is an error on my side, or a bug with Pinia. Composition function looks like this function useCurFetcher({}) {
\\ this causes build exception
const nav = useNavStore()
....
}
export const curFetcher = useCurFetcher({}) Setup:
|
Beta Was this translation helpful? Give feedback.
Answered by
posva
Apr 28, 2021
Replies: 1 comment 2 replies
-
I can't tell just from that but if |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
posva
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I can't tell just from that but if
useCurFetch()
is called outside ofsetup()
(cf docs), it will def error unless you pass pinia to useNaveStore