DEV Community


Discussion on: Reactive Canvas with TypeScript and Vue

thewebbird profile image
Anastasia • Edited

Cool example of directive usage. Thanks.

I had the same task the other day. My solution was to use :key in component containing canvas. Whenever I change the key in my vuex store - my canvas gets redrawn.

deciduously profile image
Ben Lovy Author

Interesting, I hadn't thought of that! Thanks for the tip.