urql icon indicating copy to clipboard operation
urql copied to clipboard

staleWhileRevalidate does not cause a new network request

Open yoshiwarab opened this issue 3 years ago • 0 comments

Describe the bug

This is a very similar issue to https://github.com/FormidableLabs/urql/issues/2059. It appears the same exact behavior is not present as the data is not falsely marked as not stale, however, the data stays stale and no new request is made.

Reproduction

https://codesandbox.io/s/urql-stale-while-revalidate-bug-lziis?file=/pages/index.js

Urql version

urql v2.2.3

Validations

  • [X] I can confirm that this is a bug report, and not a feature request, RFC, question, or discussion, for which GitHub Discussions should be used
  • [X] Read the docs.
  • [X] Follow our Code of Conduct

yoshiwarab avatar Aug 04 '22 23:08 yoshiwarab