在这个例子中,React钩子 useSWR 接受 key 和 fetcher 函数。 key 是请求的唯一标识符,通常 ... useSWR('/api/user', { refreshInterval: 0 }) // don't refresh // .
確定! 回上一頁