Automattic / isolated-block-editor

Repackages Gutenberg's editor playground as a full-featured multi-instance editor that does not require WordPress.
343 stars 50 forks source link

Rename fetchLinkSuggestions #135

Closed akirk closed 2 years ago

akirk commented 2 years ago

Fixes the breaking Gutenberg change https://github.com/WordPress/gutenberg/pull/40052, see also https://github.com/Automattic/gutenberg-everywhere/issues/25

Description

__experimentalFetchLinkSuggestions is being renamed to fetchLinkSuggestions

Solution

I've renamed the function call which was already written in a defensive matter. I've changed the code so that it falls back to a potentially existing __experimentalFetchLinkSuggestions but maybe this is not necessary. I haven't seen this being called anywhere in the codebase.

cc @getdave

johngodley commented 2 years ago

Thanks Alex!