I'm trying to use Refine.Dev with nextjs
Unanswered
Black Caiman posted this in #help-forum
Black CaimanOP
However, i can't make it work, i created a new project with create refine-app/latest
i'm trying to switch the blogpost page to use SSR and try the new server actions, but i can't figure it out. I keep getting this error:
i'm trying to switch the blogpost page to use SSR and try the new server actions, but i can't figure it out. I keep getting this error:
Error: Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".
{getList: function, getMany: function, create: ..., update: ..., getOne: ..., deleteOne: ..., getApiUrl: ..., custom: ...}2 Replies
Black CaimanOP
this is in my page.tsx
const BlogPostList: React.FC<IResourceComponentsProps> = async () => {
return (
<>
<div className="flex justify-between items-center">
<h1 className="scroll-m-20 text-2xl font-extrabold tracking-tight">
Blog Posts
</h1>
<div className="mb-2">
<Link href={"/blog-posts/create"}>
<Button>Create</Button>
</Link>
</div>
</div>
<Card>
<PostsTable />
</Card>
</>
);
};this is my PostsTable