Delay query invalidation

Is there a way to invalidate query request after successful mutation, but only after a couple of seconds? Settimeout doesn't seem to do the work, since the query gets called ~2 seconds after success no matter how high the timeout is

Also, is there a way to retry the query every X seconds but only a specific amount of times with invalidation?
Was this page helpful?