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

SSR issue #1

Closed
himself65 opened this issue Aug 11, 2022 · 6 comments
Closed

SSR issue #1

himself65 opened this issue Aug 11, 2022 · 6 comments

Comments

@himself65
Copy link
Contributor

Upstream: mac-s-g/react-json-view#121

We need JSON viewer in some of our cell types, but upstream has no longer been maintained.

@himself65
Copy link
Contributor Author

himself65 commented Aug 11, 2022

Could you please take a look at which module uses the window and document?

/cc @exuanbo

@himself65
Copy link
Contributor Author

Seems like because https://github.com/Andarist/react-textarea-autosize

@exuanbo
Copy link

exuanbo commented Aug 11, 2022

window and document is referenced in function getSizingData.

https://github.com/Andarist/react-textarea-autosize/blob/cd87f81b94576fd66dd3f1e055af9157bd50d808/src/getSizingData.ts

Also, useLayoutEffect is used several times in react-textarea-autosize.

@himself65
Copy link
Contributor Author

@himself65
Copy link
Contributor Author

Fixed in 1.23.0-alpha.0

@himself65
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants