Repository navigation
Allow react cache to work on route handle and server actions #53489
darklight9811
started this conversation in
Ideas
Replies: 0 comments
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.
Goals
Non-Goals
Background
Cache is actually a really good API to prevent any duplicate calls to the same resource. But sadly they are stuck to the react context, enabling it in route handles (that are not related to react) or server actions. This would help increase performance and give more flexibility to developers.
Proposal
Not any new method or property, just to allow the existing cache react method to work outside of its context (route handle and server action).
All reactions