Hacker News new | ask | show | jobs
by SebastianKra 780 days ago
https://developers.raycast.com/utilities/react-hooks/useexec

useExec, useFetch and useSql these hooks follow the stale-while-revalidate principle, which handles fetching, refetching and caching. In combination with Raycasts loading indicators, this allows developers to work directly with the remote data without having to worry about loading/error states.