The easiest way is to include the token in the key array: useSWR([url, token], (url, token) => fetch(url, { headers: { token } })) Or, you can just use a ...
確定! 回上一頁