Open ItsMeBrianD opened 8 months ago
From @archiewood in #1480
Navigate to https://mdsinabox.com/nba/teams/
view the query filtered_summary_by_team
Inspect the SQL
The user has not selected a button yet, so the input result is null, and returns the expected query results for if '${inputs.my_input}'
was null
The query does not return data and so remains in a loading state
Create an {#if} block before the results are available, returning different data. See the source code
Current behavior is an input value that is unset freezes the QueryStore to prevent errors; this is an intentional behavior.
The problem comes from inputs like
ButtonGroup
that may not have a default value, or where no selection (and no value) is a valid choice.We should adjust the behavior to enter the "forever loading" state when the input value is
undefined
, and we should pass alongnull
.null
is an intentional empty whereundefined
is unintentional.Components that do not need a default or initial value are responsible for setting their input key to
null
, Evidence should not handle this.