It’s with my own plugins installed so running in safe mode doesn’t help me find the issue. This particular plugin uses the composer-editor component in a template file.
I checked out v2.3.6 and searched for afterRefresh. It seems the composer-editor.js is using it differently. this.afterRefresh($preview); instead of this.sendAction(‘afterRefresh’, $preview); This at least seems to be the problem.