vue-masonry
vue-masonry copied to clipboard
Manually redraw with <script setup> Syntax?
trafficstars
I'm currently rewriting some old Vue components in the new
Is there any way to manually redraw when using the new syntax?
for v3 + script setup you should be able to use
<script setup>
import {inject} from 'vue';
const redrawVueMasonry = inject('redrawVueMasonry');
// call redrawVueMasonry()
https://github.com/shershen08/vue-masonry/blob/master/src/masonry.plugin.js#L138
Thanks for the response. Would this work with vue2.7? We are currently still on 2.7, rewriting everything with
It seems not to work in 2.7
injection "redrawVueMasonry" not found.