Select portion of useQuery only runs on first page load
I am building a table of Quotes where I get the quotes using
And then the
useQuery andI have a filter up top. So what I have done is use the select property to build two state arrays, all and filtered. That looks like this:And then the
priceListFilter is just a simple state string tied to the input text box: const [priceListFilter, setPriceListFilter] = useState(''); But for some reason, as I type the filter, the filtered array is not updating.