Skip to content

v11.1.0

Choose a tag to compare

@github-actions github-actions released this 16 Aug 09:39
· 8 commits to main since this release
feat: get(fresh: true) — cache-skipping network read

SWR cannot express read-after-write: a cached answer is the state before
your write, and awaiting the background-refresh stream proved racy
on-device (a local projection tracked the server exactly one sale
behind). get(fresh: true) skips the cache and returns the network's
answer; the read still updates the cache, so SWR callers benefit.
Plain get() unchanged. Fake queries in tests updated to the new
signature. v11.1.0