We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can not work in SSR mode,when i use it and refresh the page, the website wents to /, when wrappered by
<client-only> <VueCompareImage :left-image="vnsw1" :right-image="vnsw2" /> </client-only>
it became normal
The text was updated successfully, but these errors were encountered:
Hello @annamithairil, yes the component is rendered only on the client side hence the need to wrap it with the <client-only> tag
<client-only>
Sorry, something went wrong.
Also want to note that if you are trying to add it as a Nuxt plugin, you'll want to use the file name *.client.js
*.client.js
// vue-compare-image.client.js import VueCompareImage from 'vue3-compare-image' export default defineNuxtPlugin((nuxtApp) => { nuxtApp.vueApp.use(VueCompareImage) })
No branches or pull requests
can not work in SSR mode,when i use it and refresh the page, the website wents to /, when wrappered by
it became normal
The text was updated successfully, but these errors were encountered: