## 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
Activity
CreatCodeBuild commentedon Jun 17, 2020
why is this behavior a bug?
twavv commentedon Sep 6, 2020
This isn't (from my perspective) a bug. It helps synchronize execution.
Suppose you have a function
Suppose
foo
is already in the DataLoader cache, and we callWe actually WANT the call to
userLoader.load("foo")
to be scheduled with the next batch, so that the two.loadMany
calls are synchronized.CreatCodeBuild commentedon Sep 13, 2020
@travigd exactly