Skip to content

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

@romvales

Description

@romvales

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions