FilterForm inspect strange behavior
I'm just playing around with FilterForm and I'm seeing some weird inspect behavior, which is not making it easy to reason with what's going on. For instance:
Gives me:
I would have expected a
FilterForm
struct. I've validated that filter_form
is actually a FilterForm
and not a FilterForm.Predicate
? Is this a bug with the inspect protocol for FilterForm's or am I totally misunderstanding something (likely)!9 Replies
Strange...
we don't have define an inspect impl I don't think
yeah. i've tried blowing away _build... and same behaviour
So if you do
IO.inspect(filter_form, structs: false)
what do you see?
how have you verified that it is a FilterForm
%FilterForm.Predicate{} = filter_form
bombs, and FilterForm doesn't
Would that do it?š¤ yeah probably
and structs: false is no different
okay so in that case there has to be some kind of user error š
issue solved!
yeah let me look through what I'm doing
š¤¦āāļø user error, thanks and apologies
no worries