Core blocks: Stop using withAPIData
for Latest Posts block in code and docs
#7397
Labels
[Feature] Blocks
Overall functionality of blocks
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
[Package] Data
/packages/data
[Priority] High
Used to indicate top priority items that need quick attention
[Type] Developer Documentation
Documentation for developers
Raised by @mrleemon in #7390:
We should refactor Latest Posts block to use
withSelect
instead ofwithAPIData
and update all docs to follow the same pattern. We are planning to deprecatewithAPIData
, so let's make sure it is no longer exposed in Gutenberg handbook.More details on how to perform migration is shared in #7390.
There is also a known bug with a race condition inside
withAPIData
that has been around for quite some time. This is another reason why we should migrate our codebase sooner than later.The text was updated successfully, but these errors were encountered: