Open sebas5384 opened 6 years ago
Would want same
+1
Hey guys. I have no experience with server side rendering. Care to send a PR for this?
@gyorgygutai the main thing is that window
is undefined at server env.
This way, for example, you want to be sure, is type of window not undefined.
I'd need that bugfix/feature as well. But I guess it's not only react-sticky-fill's issue, but also from stickyfill: https://github.com/wilddeer/stickyfill/issues/99.
I have two suggestions:
supports.shim()
, for instance? It is not recommended by the css-supports
library creator: https://www.npmjs.com/package/css-supports#without-shimming-recommended._getPositionStyleValue()
check only happen on the client and not on the server? Because I assume, that this will cause issues as well, once 1. is resolved/done.PS: I did not had the time to create a PR, because at the end we decided to remove react-sticky-fill from the app. So I put it up here for the record. So if anyone else has the time to try it - feel free to to it. :)
+1