-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closing the block inserter decrements block type impressions (#33906)
* Closing the block inserter decrements block type impressions In order to avoid new block badges from remaining too long, interacting with the block inserter multiple times will cause them to eventually disappear. * Increase initial new block type impression count A higher value makes more sense now that closing the block inserter decrements the impression count by 1. * Fix test by improving requestBlockTypeImpressions mock accuracy This particular function is a React Native bridge method, which executes a callback to send back the requested data. * Refactor conditional logic to avoid computation Iterating over the block type impressions is unnecessary when the block inserter is opening. * Increase default block type impression count from 10 to 40 Interacting with the block inserter is a more frequent task, so it makes sense to use a larger default impression count.
- Loading branch information
Showing
3 changed files
with
40 additions
and
6 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