feat(components): Return if document is undefined

This commit is contained in:
Przemysław Żydek
2021-03-22 11:36:10 +01:00
parent 96290483b1
commit a7e0ace550
5 changed files with 16 additions and 8 deletions
+1
View File
@@ -0,0 +1 @@
export const getInitialDocument = () => typeof window === 'undefined' ? undefined : window.document