isFetching, isLoading, isPending, isError... how to best structure component? (esp. w/ TS)
There are a lot of convenience booleans (isFetching, isLoading, isPending) returned from useQuery() which signal the state of
This is the pattern that makes most sense to me:
What patterns do you all typically use?
status. I'm a bit confused which ones to use especially in TS where I want data to be defined (and not <data> | undefined) and handle all states around the async request ("loading", "error", "date").This is the pattern that makes most sense to me:
What patterns do you all typically use?