#Nextjs + typescript warning Unit8Array

3 messages · Page 1 of 1 (latest)

winged salmonBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

supple coyote
#

Provide some code of where you are passing data from to client component from server component.

hazy coral
#

`async function Course({ params }: CourseSlugProps) {
const course: Course | null = await getCourse(params.slug);

return (
<div className="ml-1 pr-8">
<div className="flex items-center justify-between space-y-2 mt-5 mb-5">
<h2 className="text-3xl font-bold tracking-tight">{course?.title}</h2>
</div>

  <Tabs defaultValue="course">
    <TabsList className="mb-5">
      <TabsTrigger value="course">Timeline</TabsTrigger>
      <TabsTrigger value="settings">Impostazioni</TabsTrigger>
    </TabsList>
    <TabsContent value="course">
      <DraggableAccordionItem course={course} />
    </TabsContent>
    <TabsContent value="settings">
      <CourseFormUpdate course={course} />
    </TabsContent>
  </Tabs>
</div>

);
}

export default Course;`

// client component
`interface CourseProps {
course: Course;
}

export function CourseFormUpdate({ course }: CourseProps) {`