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

Full mitigation where refresh() is called many times using one Queue #39

Merged
merged 1 commit into from
May 3, 2020

Conversation

Pronink
Copy link
Contributor

@Pronink Pronink commented May 3, 2020

This pull request is for fix this issue #36

image

image

Where one refresh() is executed while another refresh() is transitioning, node-exit.ts call setNodeLocation with undefined variables.

I added a queue to prevent this bug and for prevent visual glitches where refresh is called repeatedly. It can be tested in demo with "dev" script. You can view queue in console changing private static showQueueLog: boolean = false to true in utils.ts

Now all refresh() calls are queued and they are executed one after the other, waiting transitions.
I think this is it a good solution. Ask me if what you need something or you think another way.

Big regards !!!

…ing, node-exit.ts call setNodeLocation with undefined variables. I added a queue to prevent this bug and for prevent visual glitches where refresh is called repeatedly. It can be tested in demo with "dev" script.
@PierreCapo
Copy link
Owner

Awesome @Pronink !! Thanks a lot for your help ❤️ Merging and doing a release right now

@PierreCapo PierreCapo merged commit 9a5ce85 into PierreCapo:master May 3, 2020
@Pronink
Copy link
Contributor Author

Pronink commented May 11, 2020

A pleasure to have been able to help 😊😊😊
I think you forgot to compile ts code to "dist" and update the examples and demos. 😅
Big regards !! 😉😎

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

Successfully merging this pull request may close these issues.

None yet

2 participants