const { data, error } = useSWR(key, fetcher). 这是SWR 的基本API。这里的 fetcher 是一个异步函数,它接受SWR ... 或者配合类似graphql-request 的库使用GraphQL:.
確定! 回上一頁