dataloader icon indicating copy to clipboard operation
dataloader copied to clipboard

[BUG] `this` context not available in typescript definitions

Open ryanrhee opened this issue 2 years ago • 1 comments

Expected Behavior

inside a batch load function, this should refer to the data loader instance

Current Behavior

this is not typed inside the batch load function

Possible Solution

Steps to Reproduce

attempt to use this in a batch loader function, see that typescript complains

Context

my api call gives me back excess properties, so i want to prime my data loader with the excess data inside my batch function.

ryanrhee avatar Feb 16 '23 22:02 ryanrhee