next-drupal icon indicating copy to clipboard operation
next-drupal copied to clipboard

Adding next revalidate, tag, and cache options to remaining CRUD methods

Open backlineint opened this issue 1 year ago • 0 comments

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 cache and next options 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.

backlineint avatar Oct 22 '24 16:10 backlineint