composition-api
composition-api copied to clipboard
Composition API hooks for Nuxt 2.
**🐛 The bug** When unit testing a component that uses useFetch composable, I'm getting weird error. **🛠️ To reproduce** Steps to reproduce the behavior: 1. Create a component that uses...
**🐛 The bug** I am using Apollo Client which returns response data as frozen (Object.freeze()) on development mode. Looks like this causes ssrRef.value mutation to crash when frozen data has...
I am using Pinia for state management but there seem to be a compatibility issue with composition-api. Specifically the useFetch function. The error happens when I am using useFetch in...
**🐛 The bug** In some instances using Vuex with `useFetch` can result in the following error: `[vuex] do not mutate vuex store state outside mutation handlers.`. It appears that having...
**🐛 The bug** I have a renderless component that uses `useFetch`. In `ssr: true` mode, it crashes the app with this error: `Cannot convert undefined or null to object` in...
**🐛 The bug** When you edit the meta in the `useFetch`, once the page is loaded the metas are erased. Note: all the metas are in place when you look...
**🐛 The bug** useAsync in nuxt-composition-api don't work with SSR **🛠️ To reproduce** Steps to reproduce the behavior: 1. set babel in nuxt.config.ts ``` babel: { presets({ isServer }) {...
**📚 What are you trying to do? Please describe.** Want to declare defaults to my component props in Typescript with the script setup as indicated [here](https://v3.vuejs.org/api/sfc-script-setup.html#typescript-only-features) **🔍 What have you...
**📚 What are you trying to do? Please describe.** Hi, how to mock injection? injection was working fine, but its become undefined when running test. Nuxt2 + Typescript + CompositionApi...