const { data } = useSWR('/api/user', { refreshInterval: 0 }) ... If the key value changes, it will enter an infinite loop. The solution is to use useMemo as ...
確定! 回上一頁