vue-screen icon indicating copy to clipboard operation
vue-screen copied to clipboard

grid is not reactive in vite , screen still works though

Open shaderbytes opened this issue 1 year ago • 1 comments

"vue-screen": "^2.3.2" "vite": "^4.4.11"

grid is not reactive anymore? screen object is still reactive , eg

const grid = useGrid("bootstrap");
const screen = useScreen()
 <div>{{  grid.breakpoint  }}</div>
    <p>Screen width is {{ screen.width }}</p>

screen.width updates when changing screensizes grid.breakpoint DOES NOT UPDATE when changing screensizes

shaderbytes avatar Dec 13 '23 18:12 shaderbytes

Hi @shaderbytes , you need to provide a reproduction case because the code that you provided does not seem to have any problem.

I created a stackblitz project and everything looks fine. https://stackblitz.com/edit/vitejs-vite-qgazqo?file=src%2FApp.vue

reegodev avatar Feb 11 '24 12:02 reegodev