You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the main page we read:
With SWR, components will get a stream of data updates constantly and automatically.
And the UI will be always fast and reactive.
This is cool in many cases, but for some use cases, it's scary. A key example would be e-commerce: Displaying a stale price or offer may constitute deceptive marketing. This was a real issue for SWR at a company where I worked.
Is there a way to easily say "Don't cache this property, request, or object?" For example, display stale products but hide their prices until revalidate is done. If this feature does exist then we should brag about it on the front page!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
On the main page we read:
With SWR, components will get a stream of data updates constantly and automatically.
And the UI will be always fast and reactive.
This is cool in many cases, but for some use cases, it's scary. A key example would be e-commerce: Displaying a stale price or offer may constitute deceptive marketing. This was a real issue for SWR at a company where I worked.
Is there a way to easily say "Don't cache this property, request, or object?" For example, display stale products but hide their prices until revalidate is done. If this feature does exist then we should brag about it on the front page!
Beta Was this translation helpful? Give feedback.
All reactions