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

Check for existence of 'window' before use #9

Merged
merged 1 commit into from
May 16, 2020

Conversation

kasbah
Copy link
Contributor

@kasbah kasbah commented May 16, 2020

Ran into an issue using this module with Next JS since it does some SSR, even disabling SSR for the component using Paper didn't seem to help.

There is no requestIdleCallback in Node (nodejs/node#2543) so I opted for setTimeout which seems like it would at least result in semi-compatible behavior. This function will probably never be used when doing SSR anyway.

@psychobolt psychobolt added the bug label May 16, 2020
@psychobolt psychobolt merged commit 4b368ea into psychobolt:master May 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants