-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Address editor crashes from null listeners (#21658)
* fix: Address editor crashes from null listeners Setting the listeners within `instantiateItem` appears problematic as this only runs for the initial launch, but not for other events that destroy and recreate fragment--e.g., screen rotation events. To address this, GutenbergKit now follow the pattern of the Aztec and GutenbergMobile editors, invoking the `initializeEditorFragment` method. This method is described as "requesting dependency injection," which feels like an odd statement. There is likely further opportunity to refactor this architecture for simplicity. * docs: Add release note * docs: Remove `TODO` comment Apparently the linter prohibits this statement...
- Loading branch information
Showing
3 changed files
with
31 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters