-
Notifications
You must be signed in to change notification settings - Fork 778
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
Next JS (SSR) React support #297
Comments
hi @YElyousfi. That is a good question. Could you skip SSR for the CF integration and execute when |
@YElyousfi I haven't heard from you so I will assume that my answer solved your issue. Feel free to open a new issue if needed. |
how can we go about doing this? |
Use dynamic imports or check if |
I imported the module using
now I'm getting this when copying the get started code: |
dynamically importing like this made ConversationalForm = undefined
|
@jonrrivera maybe try adding conversational form inside a component and then importing that component dynamically . i use suspense
in the ContactChat component i import conversationalform normaly: |
you legend, this actually worked! |
@jonrrivera Glad to hear that! |
How can this be made to not rely on window being defined? Trying to integrate this with Next.JS / server-side-rendering but this means that on the server window is not defined.
The text was updated successfully, but these errors were encountered: