From c4e60da0046d156158ccb03127eb0a86956b53a7 Mon Sep 17 00:00:00 2001 From: Valdemar Kobelis Date: Tue, 24 Feb 2026 08:45:03 +0200 Subject: [PATCH] Fix: memoize Action#response to prevent duplicate HTTP requests --- lib/active_graphql/client/actions/action.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/active_graphql/client/actions/action.rb b/lib/active_graphql/client/actions/action.rb index bc1945e..358b651 100644 --- a/lib/active_graphql/client/actions/action.rb +++ b/lib/active_graphql/client/actions/action.rb @@ -45,7 +45,7 @@ def where(**extra_input_attributes) alias input where def response - client.post(self) + @response ||= client.post(self) end def meta(new_attributes)