You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The timeout is currently used because there is a race condition: the saveDisplayedValue() calls above result in autosave calls. These race with the discardDraft() call that will be called when the draft changes entered here are properly saved to the backend.
Refactor the code to remove the need for the $timeout and address the race condition issue.
The text was updated successfully, but these errors were encountered:
FaithAbiola
changed the title
TODO(sll) in /exploration-metadata-modal.component.ts: Get rid of the $timeout
TODO(sll) in core/templates/pages/exploration-editor-page/modal-templates/exploration-metadata-modal.component.ts: Get rid of the $timeout
May 14, 2024
FaithAbiola
changed the title
TODO(sll) in core/templates/pages/exploration-editor-page/modal-templates/exploration-metadata-modal.component.ts: Get rid of the $timeout
TODO(sll) in core/templates/pages/exploration-editor-page/modal-templates/exploration-metadata-modal.component.ts: Get rid of the $timeout.
May 14, 2024
The timeout is currently used because there is a race condition: the saveDisplayedValue() calls above result in autosave calls. These race with the discardDraft() call that will be called when the draft changes entered here are properly saved to the backend.
Refactor the code to remove the need for the $timeout and address the race condition issue.
The text was updated successfully, but these errors were encountered: