-
Notifications
You must be signed in to change notification settings - Fork 802
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AI Extension: improve performance bug when extending blocks with AI A…
…ssistant (#33681) * do not useTextContentFromSelectedBlocks() hook * changelog * do not import useTextContentFromSelectedBlocks() hook * create getBlocksContent() helper * move replaceWithAiAssistantBlock() to AI Dropdown * move the AI assistant logic to the dropdown cmp * remove unused component * use useSelect() inestad of select() * set options arg optional * remove unneeded excluding process * move getBlocksContent() to dropdown cmp * remove uneeded usage of useCallback * clean * remove requestingState prop * remove exclude usage * avoid using internal getBlockTextContent helper fn * dont pass down disabled prop to dropdown instance * remove useCallback usage * remove useTextContentFromSelectedBlocks() def * set ExtendedBlockProp as type explicitely * remove obsolte block props * clean types * discard getBlockTextContent() * add a CAUTION message about performance risk
- Loading branch information
Showing
5 changed files
with
134 additions
and
262 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
projects/plugins/jetpack/changelog/update-fix-perfomance-issue-extending-blocks-with-ai
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: patch | ||
Type: bugfix | ||
|
||
AI Extension: improve performance bug when extending blocks with AI Assistant |
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
Oops, something went wrong.