How to fire event after `v-stage` rerenders
See original GitHub issueI have a stage that I’m dynamically generating from a VueX model, as is recommended in the docs.
The problem is that when I update the model from outside the canvas (e.g. an input of a shape’s x
value for example), any watchers of the model fire BEFORE the canvas has a chance to update.
Thus, I’m wondering if there is some sort of an event that can be fired AFTER v-stage
rerenders/redraws as a result of a model/data update. Something like @redraw
could be useful.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
How to trigger an event after any (re)render of a React/Redux ...
A React/Redux app that I develop needs to live inside an iframe. The surrounding document can be told to resize the iframe by...
Read more >Rerender doesn't trigger after fireEvents with file input #664
What happened: If I upload file manually - everything works as expected. But in test cases after fireEvent rerender doesn't fired.
Read more >Events Fired During the Rendering Lifecycle | Lightning Aura ...
Handling the render event is preferred to creating a custom renderer and overriding afterRender() . For more information, see Handle the render Event....
Read more >React re-renders guide: everything, all at once - Developer way
The guide explains what are re-renders, what is necessary and unnecessary re-render, what can trigger a React component re-render.
Read more >When does React re-render components? - Felix Gerschau
Using React's forceUpdate function; Force an update in React hooks. How to optimize re-renders. Controlling when a component should update ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can control what to show in
toDataURL()
with optionsx
,y
,width
,height
. So it doesn’t matter what is visible in the viewport.@lavrton Thanks! I tried with setting options width, height in a 1x1 stage, got a full size png of my scene.