Check document is not undefined before requiring hammerjs for SSR#86
Check document is not undefined before requiring hammerjs for SSR#86wlingke wants to merge 1 commit intoJedWatson:masterfrom
document is not undefined before requiring hammerjs for SSR#86Conversation
…ver-side-rendering.
|
@JedWatson any thoughts on this? |
|
@bradleyflood You've made a bunch of statements without any backing... I'm not sure why you think "Checking for only window is quite standard." I see no evidence behind that. On the contrary, I've frequently seen that https://medium.com/front-end-hacking/preparing-react-components-for-server-side-rendering-18901d09784c Also, not sure what this problem is: Suppose you were expecting Now suppose you were expecting So I'm not sure what the problem you're stating is. The only scenario that has a breaking change is if they were expecting |
|
@JedWatson I submitted this PR over 3 months ago. Any chance you could spend 10 minutes to review and let me know if this is mergeable? Thanks! |
#14