Skip to content

Conversation

@dcondrey
Copy link

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 revalidateOnRSCFallback to PublicConfiguration
  • Updated revalidation logic to detect fallback data from RSC context
  • Set default value to false
  • Added test

Related Issues

Fixes #4065

Add configuration option to skip revalidation when data comes from RSC fallback
For data coming from RSC fallback, respect revalidateOnRSCFallback option
Add revalidateOnRSCFallback default value
Create a test file to verify revalidateOnRSCFallback
@dcondrey dcondrey requested review from huozhi and shuding as code owners April 17, 2025 10:53
@codesandbox-ci
Copy link

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.

@dcondrey
Copy link
Author

Is there something I need to do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant