How to give a placeholder value for the result of the select function and have data always defined?
Given the following useQuery
I want to use this custom hook in multiple places, so I want the following:
be able to supply a default value for the return value of select function so that when I access the data it is never undefined. I do not want to set default value for the whole response. It is a large one
0 Replies