#async component
1 messages · Page 1 of 1 (latest)
Can you show how you're using the list component? I just tried an simple example and it worked for me
Can you show the article component?
Next.js supports the async components but the types havent been updated yet. It should be soon
hmm I cant find a way to reproduce the error, do you want to create a codesandbox?
Ok i've created the sandbox. Let me just find how to share it
Since this is a fork of my github repo. I think i need to give you write access
Well looks like it works for me when opening in a private browser
what happens if you remove this line
import { useEffect, useState } from "react"; from list.tsx ?
found it pretty sure
In your page.tsx
Either remove 'use client' or remove async from the function
and layout/filter.tsx needs to be marked with 'use client' because tis a client component
I'll try. But for now i'm eating
Ok. First i can't remove async from the function List because otherwise it cannot use await
Nope still same error
I've moved use client from page.tsx to list.tsx and filter.tsx because it needed it as well
list shouldnt have use client thats gonna cause an error
Yeah i was dumb and misread this :
Ok it works but for some reason the style isn't applied to filter.tsx