Raised by @mrleemon in #7390:
It might be a good idea to update the handbook section dedicated to building dynamic blocks cause it still makes reference to withAPIData:
https://wordpress.org/gutenberg/handbook/blocks/creating-dynamic-blocks/
We should refactor Latest Posts block to use withSelect instead of withAPIData and update all docs to follow the same pattern. We are planning to deprecate withAPIData, 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.
Raised by @mrleemon in #7390:
We should refactor Latest Posts block to use
withSelectinstead ofwithAPIDataand 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
withAPIDatathat has been around for quite some time. This is another reason why we should migrate our codebase sooner than later.