Dispose of scoped config subscriptions when TextEditorComponent unmounts

Fixes #3998