const { isLoading, error, data } = useQuery('repoData', () => fetch('https://api.github.com/repos/tannerlinsley/react-query').then(res => res.json() ) ) ä¸è¦ãã»ã¨ãã©ä¸ç·ããããã¨ãªãããSWRã¯ããã¼ãfetcheã®å®è¡ããããã®ãã©ã¡ã¼ã¿ãã«ãªã£ã¦ããã ä¸æ¹ãreact-queryã¯ããã¼ã¨å®è¡APIã¯ç¬ç«ãã¦ããããããã¯ã¤ã¡ã¼ã¸ã¨ãã¦Reduxã®Actionãªã©ã®constantã®ãããªå°è±¡ãåãã APIã®éã Core API RQ : https://react-query.tanstack.com/docs/api SWR https://swr.vercel.app/docs/options#parameters ãã
{{#tags}}- {{label}}
{{/tags}}