-
Notifications
You must be signed in to change notification settings - Fork 176
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
Support for SSR #4981
Labels
Milestone
Comments
accmeboot
pushed a commit
that referenced
this issue
Jul 22, 2024
AlexeyGirin
added
the
Test Cases Written
Test cases has been written for that issue
label
Jul 25, 2024
No test cases needed for that issue |
accmeboot
pushed a commit
that referenced
this issue
Jul 26, 2024
accmeboot
pushed a commit
that referenced
this issue
Jul 29, 2024
accmeboot
pushed a commit
that referenced
this issue
Jul 29, 2024
accmeboot
pushed a commit
that referenced
this issue
Jul 30, 2024
Merged
9 tasks
rrodionov91
pushed a commit
that referenced
this issue
Aug 1, 2024
- example-ssr created - example-ssr window error fix & hydration fix --------- Co-authored-by: Mikhail Vialov <mikhail_vialov@epam.com>
Verified verbally.
|
Guch1g0v
pushed a commit
that referenced
this issue
Oct 17, 2024
- example-ssr created - example-ssr window error fix & hydration fix --------- Co-authored-by: Mikhail Vialov <mikhail_vialov@epam.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Background
It is impossible to use ketcher in SSR applications because of errors. The reason is that ketcher uses browser APIs, such a "window" object, which are not supported on server side.
Solution
Create example of SSR application which uses ketcher (similar what we have in /example folder). Wrap all usages of unsupported APIs into conditions to exclude it from execution on server side. Probably better option is to wrap the initialisation code to have this check in one place only.
Additional context
It was found that Raphaeljs library(used for render in molecules mode) uses window object.
The text was updated successfully, but these errors were encountered: