Question
It seems like SWR pattern in playground is not descriptive enough.
You get two fetcher calls, but cache hit for second call is result from the second call. Shouldn’t this be result from the first call?
I suppose you basically want to show stale data from first call while the second call is resolving, and then at the end it would be great to show another cache hit where result from the second call is visible, and so on.
EDIT: I just realized that this is possibly related to changes from seconds to milliseconds. Fetcher is originally called every 10 seconds, but values is right now set to behave like 10 milliseconds. This should be 10000.
Question
It seems like SWR pattern in playground is not descriptive enough.
You get two fetcher calls, but cache hit for second call is result from the second call. Shouldn’t this be result from the first call?
I suppose you basically want to show stale data from first call while the second call is resolving, and then at the end it would be great to show another cache hit where result from the second call is visible, and so on.
EDIT: I just realized that this is possibly related to changes from seconds to milliseconds. Fetcher is originally called every 10 seconds, but values is right now set to behave like 10 milliseconds. This should be 10000.