#I'm trying to use Refine.Dev with nextjs

3 messages · Page 1 of 1 (latest)

last drum
#

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: 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: ...}

lime ginkgoBOT
#

🔎 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)

last drum
#

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>
    </>
  );
};