effector / effector/farfetched

Strange Behavior of cache

Open
#519 0 comments 0 reactions 0 assignees View on GitHub
scope:core
Dominant language
TypeScript
Stars
221
Forks
36
PR merge metrics
No merged PRs in 30d

Description

First behavior
Cache does not block the second query call if it was made with a short time interval like a 1500ms

Second behavior
The timer in cache is reset whenever query is called. This means that staleAfter will never work if the interval between query calls is less than StaleAfter

[reproduce](https://codesandbox.io/p/devbox/query-cache-bug-zhs785)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.