lib/graphql/dataloader.rb in graphql-2.0.14 vs lib/graphql/dataloader.rb in graphql-2.0.15

- old
+ new

@@ -287,10 +287,13 @@ # @see https://github.com/rmosolgo/graphql-ruby/issues/3449 def spawn_fiber fiber_locals = {} Thread.current.keys.each do |fiber_var_key| - fiber_locals[fiber_var_key] = Thread.current[fiber_var_key] + # This variable should be fresh in each new fiber + if fiber_var_key != :__graphql_runtime_info + fiber_locals[fiber_var_key] = Thread.current[fiber_var_key] + end end if @nonblocking Fiber.new(blocking: false) do fiber_locals.each { |k, v| Thread.current[k] = v }