elm remote data is a TS union type based on the webdata / remote data pattern in elm. I have been trying to create wrapper hooks or conversion functions for useQuery, etc. in react-query to give more predictable switch style output covering all states.