jsonkao / react-scrollama

Simple scrollytelling with the IntersectionObserver in React.
https://jsonkao.github.io/react-scrollama
MIT License
390 stars 30 forks source link

Gatsby SSR Fix #89

Closed thisispaul closed 2 years ago

thisispaul commented 2 years ago

Adding checks to see if we in a browser environment to fix gatsby builds. These checks used to be in v2.2.16 but seem to have been removed from the latest version.

Related: #61 #60

Fixes #87

jsonkao commented 2 years ago

Really appreciate the fix!! I can publish the updated package when I get home from work today

selfie-0 GitHub Selfies

thisispaul commented 2 years ago

@jsonkao perfect thanks. If you could publish it asap that would be amazing. Cheers!

thisispaul commented 2 years ago

@jsonkao hey sorry to bother but could you publish a new version with this fix in please?

Thanks so much

jsonkao commented 2 years ago

no problem - i totally forgot about this, sorry. just released a new version: 2.3.1 !

https://github.com/jsonkao/react-scrollama/releases/tag/v2.3.1