RamonGebben/react-perf-tool

Does not work with isomorphic applications

Closed this issue · 3 comments

azz0r commented

ReferenceError: document is not defined

For the moment I'm not planning to support isomorphic rendering.

Because it's not very familiar to me. You are welcome to look into it and tell me what would need to change in order to support it. Otherwise I will close this issue and make a note of it in the back log.

Since there was no response by @azz0r I will close this issue and consider it as a feature for the future

would just like to add +1 for requesting universal rendering support. An easy hack is to check for window or document being defined before setting up the component, this way you can defer any processing until the client bundle hooks in and that check becomes truthy.