Closed carledwardfp closed 2 years ago
/slow
Error: storyIds.slice is not a function
function NewsWithData() { const { data: storyIds } = useData('top', () => fetchData('topstories', 500)) return ( <> {storyIds ? storyIds.slice(0, 30).map((id) => { return ( <Suspense key={id} fallback={<Spinner />}> <StoryWithData id={id} /> </Suspense> ) }) : null} </> ) }
Steps to Reproduce:
/slow
Error: storyIds.slice is not a function
Fix: