The best way to manage this is via useEffect . const Component = () => { const { data, error } = useSWR('/api/user', fetcher); const [state, ...
確定! 回上一頁