สิ่งที่ useSWR ทำคือ รับ parameter เป็น key และ fetcher ที่เป็น function ... const { data, error } = useSWR('/api/user', fetch, options);.
確定! 回上一頁