Hi I have added custom field in post entries that will record the IDs of the uploaded media.
from the JSON it is know that the list of media is stored in
wp-json/wp/v2/media?parent=[postID]
How should I fetch the media by ID, or convert to a proper fetch URL?
after that, should retrieve them with state.source.attachment[id]?
or any other more preferred methods?
thanks!