Skip to content

Interesting internals causing SSR not to initialise a utils class #2005

Discussion options

You must be logged in to vote

OK so I see the issue.
If I define a getter in a computed variable to return a function, I guess somewhere, perhaps vue internals, this causes the error.

So instead of

resourcesApiStateIsPending: computed(() => {
      return utils.resourcesApiStateIsPending
    })

Using

resourcesApiStateIsPending: computed(() => {
      return (resources: string[]) => (utils.resourcesApiStateIsPending(resources))
    })

will work

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by silverbackdan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant