Discourse 권장 편집

참고로 이 플러그인이 오류를 발생시키고 있습니다:

plugin-api.gjs:234 [PLUGIN discourse-suggested-edits] Attempted to modify "service:composer", but it was already initialized earlier in the boot process (e.g. via a lookup()). Remove that lookup, or move the modifyClass call earlier in the boot process for changes to take effect. https://meta.discourse.org/t/262064
_resolveClass @ plugin-api.gjs:234

초기화자(initializer)가 api.customizeComposerText() 호출 직전에 api.modifyClass("service:composer", {...})를 호출하여 레이스 컨디션(race condition)이 발생하는 것으로 보입니다. 변경 사항이 적용되려면 api.modifyClassapi.customizeComposerText보다 먼저 실행되도록 코드 순서를 재배열해야 한다고 생각합니다:

여기서 PR을 열었습니다:

2개의 좋아요