Open heyu3913 opened 1 year ago
Have you resolved the issue?
Have you resolved the issue?
没解决
Try don't save it to a ref, a simple let worked for me.
Replace
const vantaEffect = ref(null)
With
let vantaEffect
And later no need for .value
obviously. If you want to make it reactive, maybe watch the options and trigger vantaEffect.destroy()
and reinit the effect.
Try don't save it to a ref, a simple let worked for me. Replace
const vantaEffect = ref(null)
Withlet vantaEffect
And later no need for
.value
obviously. If you want to make it reactive, maybe watch the options and triggervantaEffect.destroy()
and reinit the effect.
Thank you for your suggestion. While using a simple let instead of a ref does work as a temporary solution, it doesn't address the underlying issue with using this component library in Vue 3. We would prefer to find a more comprehensive solution that fully resolves the problem. We'll continue to investigate and look for a more robust approach to integrate this component library seamlessly with Vue 3. If you have any further insights or suggestions, we would greatly appreciate your input. Thank you!
vantaEffect 不能用响应式吧
Below is my code, and when I click the "Destroy!!!!!!!!" button, an error is reported in the console.