Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calling undo() or redo() can lead to a race condition accessing image #35

Open
gmatrangola opened this issue May 15, 2023 · 0 comments
Open

Comments

@gmatrangola
Copy link

In both undo() and redo() there is a call to redraw() which is async. In my app I perform an action on the image immediately after each call to undo and redo.
Something like this..
<button @click="writing canvas.redo(); doSomething(image);">
I think the call to redraw() hasn't finished when doSomething() function is called.
I suggest making redo() and undo() async and calling redraw() with the await keyword,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant