Skip to content

VueMq($mq) computed value is not reactive when using Nuxt. #73

@jaxenvisuals

Description

@jaxenvisuals

When I resize the browser window, the value for $mq remains the same. But in the demo, it is reactive.
Here's my code below:

plugins/vue-mq.js
`import Vue from 'vue'
import VueMq from 'vue-mq'

// Vue MQ
Vue.use(VueMq, {
breakpoints: {
// default breakpoints - customize this
sm: 640,
md: 768,
lg: 1024,
xl: 1280,
xxl: 1440,
},
defaultBreakpoint: 'sm', // customize this for SSR
})
`

nuxt.config.js
plugins: [{ src: '~plugins/vue-mq.js', ssr: false }],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions