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

Exposed Load method to invoke synchronous loading of component #42

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

TrinaChoudhury
Copy link

  • @loadable/component provides 2 methods preload and load method to load components through code synchronously. While preload doesn't return promise, load does.

  • On the other hand, react-loadable exposes preload method that returns promise.

The PR exposes "load" method which internally handles both the loadable libraries.

@trinachoudhury1mg
Copy link

cc: @tazsingh

@trinachoudhury1mg
Copy link

@tazsingh @gregberge - Please review the change.

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