editor-js / editor-js/image

[SSR] Prevent ImageTool from accessing window on server-rendered components.

Open
#287 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
285
Forks
307
PR merge metrics
No merged PRs in 30d

Description

I'm facing an issue using this library on my Remix app. I'm wondering, why does it perform a side effect on window when I import it from my server-rendered component?

I managed to prevent the library from doing the side effect in the server by importing it on a client-only component. I'm wondering why it does immediately perform modification on the window object when you try to import it.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.