This repository has been archived by the owner on Dec 5, 2024. It is now read-only.
fix: useFetch in renderless component leads to error "Cannot convert undefined or null to object" #600
Labels
bug
Something isn't working
🐛 The bug
I have a renderless component that uses
useFetch
. Inssr: true
mode, it crashes the app with this error:Cannot convert undefined or null to object
inserverPrefetch
The issue is that
vm.__composition_api_state__.rawBindings
is not set for a renderless component.🛠️ To reproduce
Steps to reproduce the behavior:
yarn dev
ssr: false
innuxt.config.js
Repo for reproduction: https://github.com/thekonz/reproduce-bug-nuxt-composition-use-fetch
Component: https://github.com/thekonz/reproduce-bug-nuxt-composition-use-fetch/blob/master/components/outer.vue
🌈 Expected behaviour
I expect it to work the same on ssr as in client.
The text was updated successfully, but these errors were encountered: