next-drupal
next-drupal copied to clipboard
Adding next revalidate, tag, and cache options to remaining CRUD methods
Package
next-drupal (NPM package)
Describe the feature request
Feels like a lower priority given the nature of our create/update/delete methods, but for the sake of completeness we should add the revalidate and tag options to these methods. I think the main reason we'd want to do this, is to be able to prevent Next from ever caching fetch for these methods - by their nature they will always provide a new response.
Describe the solution you'd like
- Add
cacheandnextoptions to createResource, updateResource, and deleteResource. - Pass the values to fetch options if provided.
Describe alternatives you've considered
We could wait to hear user need for this before implementing, and close if we don't hear anything.