Skip to content

Commit

Permalink
empty dependency array for useScreenClass
Browse files Browse the repository at this point in the history
  • Loading branch information
gerbenmeyer committed May 10, 2020
1 parent 3d01303 commit a744300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const useScreenClass = (source, fallbackScreenClass) => {
return () => {
window.removeEventListener('resize', handleWindowResized, false);
};
});
}, []);

return screenClass;
};

0 comments on commit a744300

Please sign in to comment.