When a query requires variables, the variables property on the resulting QueryHook is optional no matter what.
This seems less-than ideal as it allows developers to implement the hook incorrectly and only discover the issue when the query fails due to missing arguments.
I'm curious what the thought process was behind this design choice and if it's something that can be controlled.
Hi, this is somewhat of a question on the design.
When a query requires variables, the
variables
property on the resultingQueryHook
is optional no matter what.This seems less-than ideal as it allows developers to implement the hook incorrectly and only discover the issue when the query fails due to missing arguments.
I'm curious what the thought process was behind this design choice and if it's something that can be controlled.
Thanks!
Matt