We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@ameerthehacker This package does not appear to support ssr. Photos are not displayed in the viewport.
The text was updated successfully, but these errors were encountered:
No more features are actively developed but I'm happy to accept a PR if you wish to contribute
Sorry, something went wrong.
@Saeeed-B
/** * https://github.com/alex-cory/use-ssr * https://github.com/alex-cory/use-ssr/blob/master/useSSR.ts */ const isBrowser: boolean = !!( typeof window !== 'undefined' && window.document && window.document.createElement ); const Lazy = ({ children }) => { if (lazy && isBrowser) { return ( <LazyLoad className={classes.avatar} once placeholder={<LoadingSpinner />} > {{children}} </LazyLoad> ); } else { return children; } }
No branches or pull requests
@ameerthehacker
This package does not appear to support ssr.
Photos are not displayed in the viewport.
The text was updated successfully, but these errors were encountered: