-
Notifications
You must be signed in to change notification settings - Fork 506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] batchScheduleFn is always called even if value taken from cache #243
Labels
Comments
why is this behavior a bug? |
This isn't (from my perspective) a bug. It helps synchronize execution. Suppose you have a function function getFriends(userId) {
const user = userLoader.load(userId);
const friends = userLoader.loadMany(user.friendIds);
return friends;
} Suppose
We actually WANT the call to |
@travigd exactly |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
"batchScheduleFn" should not get called when value is taken from cache
Current Behavior
"batchScheduleFn" is called always and delaying response
Possible Solution
after checking if value is in cache - to ignore "batchScheduleFn"
Steps to Reproduce
Console log in "batchScheduleFn", it is called always
The text was updated successfully, but these errors were encountered: