Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Server Components in the config #573

Open
fenq2 opened this issue Aug 20, 2024 · 3 comments
Open

React Server Components in the config #573

fenq2 opened this issue Aug 20, 2024 · 3 comments

Comments

@fenq2
Copy link

fenq2 commented Aug 20, 2024

Hi. Is there any way to use server-side next js components in the config file?
Something like this:

export const config: Config<ConfigComponentsProps> = {
  root: {
    render: ({ children }) => (
       <>
        <main>{children}</main>

        <SomeServerComponent />
      </>
    ),
  },
  components: {
    ServerComponent: {
      fields: {},
      render: (props) => <ServerComponent {...props} />,
    },
  },
};
@AniTexs
Copy link

AniTexs commented Aug 27, 2024

Following.. Want to know this too... :)

@fenq2
Copy link
Author

fenq2 commented Aug 27, 2024

@chrisvxd

@chrisvxd
Copy link
Member

It's possible to use with server-side components, but not .

This is because is a client-side component that renders components on the fly by design, as the user drags them in.

I'm open to hearing what the use-case is, and how you would expect it to work, plus any ideas about how to achieve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants