\r\n`\"vue\":\"^2.6.14\"`\r\n`\"@vue/composition-api\":\"^1.4.1\"`\r\n\r\nCan anyone advise?\r\n\r\nMy only resolution atm is to downgrade and duplicate vueUse functionality intending for use.\r\n",[],1070,"Vue2 + Vue composition-api: Error in data(): \"TypeError: vueDemi.getCurrentScope is not a function\"","2022-09-21T19:28:08Z","https://github.com/vueuse/vueuse/issues/1070",0.70483404,{"description":2924,"labels":2925,"number":2926,"owner":2857,"repository":2858,"state":2879,"title":2927,"updated_at":2928,"url":2929,"score":2930},"Hello @antfu ,\r\n\r\nI am currently working on a SPA using `vue2` + `options-api` . This SPA imports another component library (`vue2` + `@vue/composition-api`), which simply exposes a single vue component. The component library also uses `@vueuse/core` using `vue-demi`.\r\n\r\nHere's an example of the exported component of the library (can not share everything since it's an company internal project)\r\n```vue\r\n\u003Ctemplate>\r\n \u003Cdiv>\r\n \u003Cp>FOO: {{ blub }}\u003C/p> \u003C!-- will stay false -->\r\n \u003Cbutton @click.stop=\"click\">CLICK ME\u003C/button>\r\n \u003C/div>\r\n\u003C/template>\r\n\r\n\u003Cscript>\r\nimport { defineComponent, ref } from \"@vue/composition-api\"\r\nimport { useLocalStorage } from \"@vueuse/core\"\r\n\r\nexport default defineComponent({\r\n setup: (props) => {\r\n const foo = ref(false)\r\n\r\n const storageLocale = useLocalStorage(\"some_key\", \"en-GB\", {\r\n listenToStorageChanges: true,\r\n window,\r\n })\r\n\r\n return {\r\n foo,\r\n click: () => {\r\n console.log(\"before click\", foo.value)\r\n foo.value = true\r\n console.log(\"after click\", foo.value) // \u003C-- will be true\r\n },\r\n }\r\n },\r\n})\r\n\u003C/script>\r\n```\r\n\r\nSo basically everything works pretty good. But as soon as I add the `useLocalStorage` or any other composable from `@vueuse/core`, the template will not re-render as soon as the button was clicked. The ref value itself works, only the template does not update. I did a lot of debugging together with my colleague, and we figured out that the template will update, as soon as we get rid of all `vue-demi` based code.\r\n\r\nDependencies of the SPA:\r\n```json\r\n\"dependencies\": {\r\n \"vue\": \"^2.6.10\",\r\n \"@company/components\": \"1.0.0\",\r\n \"@vue/composition-api\": \"1.0.0-beta.25\"\r\n},\r\n\"devDependencies\": {\r\n ... all other\r\n}\r\n``` \r\nDependencies of the ComponentLibrary: \r\n```json\r\n\"dependencies\": {\r\n \"@vueuse/core\": \"4.0.10\"\r\n},\r\n\"devDependencies\": {\r\n \"vue\": \"^2.6.10\",\r\n \"@vue/composition-api\": \"1.0.0-beta.25\"\r\n ... all other\r\n}\r\n```\r\n\r\nDo you know what could be the issue here?\r\n\r\nKind regards,\r\nLukas",[],35,"vue-demi breaks composition-api template re-rendering (vue2)","2021-02-06T14:34:10Z","https://github.com/vueuse/vue-demi/issues/35",0.7067125,{"description":2932,"labels":2933,"number":2934,"owner":2857,"repository":2858,"state":2879,"title":2935,"updated_at":2936,"url":2937,"score":2938},"After upgrading to vue-demi \"^0.12.1\",\r\n\r\nI have \"[vue-composition-api] must call Vue.use(VueCompositionAPI) before using any function.\" all over the place.\r\nI tried to solve with https://stackoverflow.com/questions/69846717/vue2-and-composition-api-cannot-import-store-error-vue-composition-api-must, but with no success.\r\n\r\nThis upgrade was triggered by the upgrade \"@vue/apollo-composable\", from \"^4.0.0-alpha.15\" to \"^4.0.0-alpha.16\"\r\n\r\nMy current setup:\r\n \"@vue/apollo-composable\": \"^4.0.0-alpha.15\",\r\nvue-demi \"^0.11.4\"\r\n\r\nis not having any issues\r\n",[],127,"Issue with compositionApi","2022-01-26T12:53:52Z","https://github.com/vueuse/vue-demi/issues/127",0.70812523,["Reactive",2940],{},["Set"],["ShallowReactive",2943],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fmiqG7lltiV_UYAd8rFj8WRtYQnFNTfVSUir0-t5HSuw":-1},"/vueuse/vue-demi/23"]