Web IDE throws console error when file is opened then renamed quickly
Description
Noticed locally on master
and on .com
20201118_console_error_when_quickly_renamed
- Open Web IDE
- Open File
- Quickly rename the file
- Console error is thrown
Investigation
It looks like our callback here is getting called even after a rename https://gitlab.com/gitlab-org/gitlab/blob/184b59d5f7b65c75161cf679e7dfbf97d1a11261/app%2Fassets%2Fjavascripts%2Fide%2Fcomponents%2Frepo_editor.vue#L277
Maybe we just need to add some gracefullness to the action or mutation? Maybe we can detect that we're actually trying to dispose of something
Edited by Paul Slaughter