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

FIX: backtracking re-render assertion in future-date-input #13075

Conversation

AndrewPrigorshnev
Copy link
Contributor

@AndrewPrigorshnev AndrewPrigorshnev commented May 17, 2021

Backtracking re-render refers to a scenario where, in the middle of the rendering process, you have modified something that has already been rendered.

See more details from the Ember team here.

We call _updateInput from init. _updateInput triggers onChangeInput which mutates a date that was given to future-date-input just a moment ago and a rendering cycle wasn't finished yet.

I ran into this assertion when modifying the Slow Mode dialog when working on FIX: slow mode dialog doesn't remember Enabled Until value.

It didn't break any test so far and I didn't find regressions; I will deal with regressions it may cause.

@AndrewPrigorshnev AndrewPrigorshnev changed the title FIX: backtracking re-render" assertion in future-date-input FIX: backtracking re-render assertion in future-date-input May 17, 2021
@AndrewPrigorshnev AndrewPrigorshnev merged commit 6d3c975 into master May 19, 2021
@AndrewPrigorshnev AndrewPrigorshnev deleted the fix/backtracking-rerender-asserion-in-future-date-input branch May 19, 2021 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants