jscottsmith / react-scroll-parallax

🔮 React hooks and components to create parallax scroll effects for banners, images or any other DOM elements.

Home Page:https://react-scroll-parallax.damnthat.tv/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could not find `react-scroll-parallax` context value.

sirshurak opened this issue · comments

How to properly handle provider with SSR ? I'm having this throwing error.

'Could not find `react-scroll-parallax` context value. Please ensure the component is wrapped in a <ParallaxProvider>'

I've verified that when window is not defined the context is returned null

const isServer = typeof window === 'undefined';

@sirshurak ya it should not throw in this case. I published a patch react-scroll-parallax@2.4.2. Please try this version and see if the error is resolved. Thanks!