As I access the current Vue instance and retrieve the $vuetify object with all breakpoints and properties, I encounter an issue where the breakpoints do not update when changing the screen size. It seems to lack reactivity.
Even after attempting to use computed properties, the issue persists:
import { getCurrentInstance } from 'vue'
const vuetify = computed(() => (getCurrentInstance()?.proxy as any).$vuetify);
I am looking for a way to utilize $vuetify.breakpoints and have it adjust according to the screen size changes, similar to how it functions in Vue 3 options syntax: this.$vuetify.breakpoints. I am currently transitioning from Vue 2 to 3 using script setup syntax (Composition API).
Any insights or solutions would be greatly appreciated. Thank you.