We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df1b1cc commit 60efc15Copy full SHA for 60efc15
src/components/useController.js
@@ -3,6 +3,10 @@ import ParallaxContext from '../helpers/ParallaxContext';
3
4
export default () => {
5
const parallaxController = useContext(ParallaxContext);
6
+ const isServer = typeof window === 'undefined';
7
+ if (isServer) {
8
+ return null;
9
+ }
10
11
if (!parallaxController) {
12
throw new Error(
0 commit comments