Replies: 1 comment 3 replies
-
|
Hi, |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Non-Goals
No response
Background
This allows you to do things such as put cached content behind a auth wall, or decide exactly what you want to cache.
Currently you can do this by making a
fetchrequest with all the revalidation options. However to programtically revalidate it, you have to userevalidateTagwhich limits how many components you can cache (especially once you start adding props)Proposal
Have components have lots of the same caching options as a page.
Add a
revalidateComponentserver function which takes the component function and an optional selection of props (if not given, revalidate all instances)I am happy to contribute this, but wouldn't know where it is all done.
Beta Was this translation helpful? Give feedback.
All reactions