Clear the data from useQuery?
(novice question, bear with me)
I useQuery to fetch data from an API. The data is then displayed as-is on the screen. Great.
Now I want to add a "Clear" button which clears the data. I can't seem to make it work.
I tried the remove method returned by useQuery, but it doesn't work?
I useQuery to fetch data from an API. The data is then displayed as-is on the screen. Great.
Now I want to add a "Clear" button which clears the data. I can't seem to make it work.
I tried the remove method returned by useQuery, but it doesn't work?