Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
backlineint opened this issue Oct 22, 2024 · 0 comments
Labels
enhancement New feature or request triage A new issue that needs triage

Comments

@backlineint
Copy link
Contributor

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 backlineint added enhancement New feature or request triage A new issue that needs triage labels Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage A new issue that needs triage
Projects
None yet
Development

No branches or pull requests

1 participant