This is not a question. I am just sharing a facet of my experience with Absinthe subscriptions.
Today I was “hackathon”-level coding a new graphQL API with a friend using Phoenix+Absinthe.
I am using subscriptions in Absinthe a lot and I noticed something strange happening.
I would have failing test for subscriptions and I would not know why it was failing. So, i would put
IO.inspect in the subscription
trigger functions to inspect the args.
When i do this, the tests pass!
I have seen this before using Elixir/Phoenix - my tests fail and when I try to observe actual values, they start to pass.
I feels like Schroedinger’s cat - when I observe the values, they actually take a value ( I have seen this happening before with
Does anyone else experience this with Elixir? Maybe it’s a Phoenix thing? I rarely use Elixir without Phoenix.
Sorry if this topic is too vague but I have no strong evidence of the problem (it’s not really a big problem, just a small inconvenience) and I am wondering if anyone else sees this happening sometimes.
also Merry Christmas everyone, I hope nobody is too cold this winter.