Closed johnbillion closed 3 years ago
This is actually needed for lower level users who cannot list users via the REST API.
The initial post loaded on the block editing screen (via createPreloadingMiddleware()
) doesn't use _embed
like I thought it did.
Fixed in eb677b3.
When the component first mounts, and every time it remounts without the user list having been changed, we can pull the current list of user obects from the
_embedded
attribute of the post instead of via the REST API. This will save REST API requests.Need to add support for embedding the user objects when the
_embed
query parameter is used.