swr
swr copied to clipboard
Skip revalidation for RSC fallback data by default
Add configuration option revalidateOnRSCFallback (default: false) to eliminate redundant network request since data is already fresh when using SWR with RSC.
Changes
- Added configuration option
revalidateOnRSCFallbacktoPublicConfiguration - Updated revalidation logic to detect fallback data from RSC context
- Set default value to
false - Added test
Related Issues
Fixes #4065
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Is there something I need to do?