damianstasik / vue-svg-loader

🔨 webpack loader that lets you use SVG files as Vue components
https://vue-svg-loader.js.org
MIT License
645 stars 86 forks source link

Mark the component as Raw or use shallowRef #209

Open mrleblanc101 opened 1 year ago

mrleblanc101 commented 1 year ago

In Vue 3 I get this warning:

[Vue warn]: Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with markRaw or using shallowRef instead of ref. Component that was made reactive: {file: 'src/svg/grains/mais.svg', render: ƒ}render: ƒ render(_ctx, _cache)file: "src/svg/grains/mais.svg"[[Prototype]]: Object