Skip to content
New issue

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

Utils to force loading of lazy loading components #283

Merged
merged 3 commits into from
Mar 13, 2020
Merged

Utils to force loading of lazy loading components #283

merged 3 commits into from
Mar 13, 2020

Conversation

kmkzt
Copy link
Contributor

@kmkzt kmkzt commented Mar 10, 2020

about #241

This is the feature to force loading of lazy loading components.
It can be used when transitioning to a component that is not visible in the page.
I think that you can use it in SSR by hooking componentDidMount.

Forcibly load components that are lazy loaded by writing as follows.

import { forceVisible } from 'react-lazyload';

forceVisible();

@kmkzt kmkzt changed the title Feature to force loading of lazy loading components. Utils to force loading of lazy loading components Mar 10, 2020
@ameerthehacker
Copy link
Collaborator

Thanks @kmkzt for the contribution, I will take a look and once I fix the build system will merge it

@kmkzt
Copy link
Contributor Author

kmkzt commented Mar 10, 2020

Thanks!

@ameerthehacker
Copy link
Collaborator

@kmkzt can you please rebase and push so that the CI will run and I can quickly review and merge

@ameerthehacker
Copy link
Collaborator

Thanks @kmkzt for the contribution, after a quick testing in the master I will release it

@ameerthehacker ameerthehacker merged commit 573448e into twobin:master Mar 13, 2020
@kmkzt
Copy link
Contributor Author

kmkzt commented Mar 13, 2020

@ameerthehacker Thanks!

@kmkzt kmkzt deleted the feature/force-visible branch March 13, 2020 04:48
@ameerthehacker
Copy link
Collaborator

@kmkzt a new version 2.6.6 has been published with this, once again thanks for the contribution

@kmkzt
Copy link
Contributor Author

kmkzt commented Apr 1, 2020

@ameerjhan
Thank you too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants