-
Notifications
You must be signed in to change notification settings - Fork 65
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
DOM is not getting updated #73
Comments
|
The showAllCheckpoints is getting updated correctly, -> the TrackingBody() funciton is rerun but the dom does not change ... |
Ok I think I fixed it but I am not sure if it is a bug or maybe I am just stupid...
After removing the line, everything works fine again... |
andruschka
changed the title
DOM is not getting updated on update.
DOM is not getting updated
Dec 6, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a yo-yo function that takes an object param with an array -> checkpoints and and a bool -> showAllCheckpoints. When showAllCheckpoints is false or undefined I slice the checkpoints array to 3 items. If the showAllCheckpoints flag is set to true, I dont do that. The checkpoints then get mapped to further yo-yo functions that generates Elems.
The problem now: when I update yo-yo with "showAllCheckpoints: true" the DOM does not get updated. I log the checkpoints.length before returning the yo-yo temp. string and it is logged right:
first with length = 3 and then after updating with length = 7.
Am I doing something wrong???
The text was updated successfully, but these errors were encountered: