Effect CommunityEC
Effect Community3y ago
7 replies
imagio

Confusion over accessing cached values in batch resolver using FiberRef.currentRequestCache

I'm running into some confusion over FiberRef.currentRequestCache -- I want to get the cached values in my batch resolver so I can include some info on cached values in the call to my server. I'm not sure how to get the actual values out of the Cache.Request returned by FiberRef.currentRequestCache. The .values() of that cache aren't the cached values but instead are

{
    listeners: Request.Listeners;
    handle: Deferred.Deferred<unknown, unknown>;
}[]


I don't quite understand this data structure. How might I get information about the values in the currentRequestCache to send with my request?
Was this page helpful?