Closed josgba closed 1 year ago
I merged a fix for this back in April but we haven't published a new version 😞 https://github.com/graph-gophers/dataloader/blob/69412165eb30a45d7933e953c719217a2a25c96a/dataloader.go#L235
@tonyghita @pavelnikolov Can we please publish a new version?
Thank you @vivek-ng I just cut a new release version https://github.com/graph-gophers/dataloader/releases/tag/v7.1.0
Hello!
I'm noticing that when request context is cancelled during operation, the thunk related to that request panics when it is resolved.
This seems to be due to the thunk not having a
value
property when thereturn
value in this block is hit (indataloader.go
):When this thunk is cached, it then results in a panic in subsequent requests until the cache is cleared.
Is there a suggested way to guard against this? I've tried the following in my cache implementation to attempt to guard against caching these 'invalid' thunks, but it results in a deadlock: