diff --git a/test/use-swr-integration.test.tsx b/test/use-swr-integration.test.tsx index 4e14b30a8..2f1746a5d 100644 --- a/test/use-swr-integration.test.tsx +++ b/test/use-swr-integration.test.tsx @@ -439,13 +439,8 @@ describe('useSWR', () => { const ChildComponent = () => { const { data } = useSWR(key, _ => createResponse(_, { delay: 100 })) return
{data}
- const { data } = useSWR(key, _ => createResponse(_, { delay: 100 })) - return
{data}
} const NestedRender = () => { - const { data, isValidating } = useSWR(key, _ => - createResponse(_, { delay: 50 }) - ) const { data, isValidating } = useSWR(key, _ => createResponse(_, { delay: 50 }) )