Block Editor: Remove non-public fetchSearchSuggestions from LinkControl documentation #19710
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Previously: #19705 (comment)
This pull request seeks to resolve an issue where the
LinkControl
component is documented to support afetchSearchSuggestions
prop. However, this prop was removed as of #19705 under the assumption it was not expected to be needed (after #19638).That said, there's two approaches this could take:
The current pull request changes implement the second option.
It is not clear to me whether this prop is actually needed, or if it's sufficient to rely on the
__experimentalFetchLinkSuggestions
block settings value which isselect
-ed in the internal implementation of the component. It may have been useful previously for the purpose of the unit tests to verify the expected behavior of a stubbed fetch function.Testing Instructions:
Currently, the only changes are to the documentation, so there are no expected changes to the application runtime.