Best WordPress Hosting
 

Proposal: Better REST API handling in JavaScript

via make.wordpress.org => original post link

This call for feedback will be open for the next two weeks until July 18th.

I propose extending the useEntityRecord hook to support editing and deleting WordPress data. It should make building features and plugins on top of WordPress REST API easier.

The hook is a part of @wordpress/core-data, a JavaScript package providing tools for interacting with the WordPress REST API. You may know core-data from Redux selectors, actions, and React hooks like  getEntityRecord, saveEntityRecords, useSelect.