question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it possible to load many libraries at the same time with loadable.lib ?

See original GitHub issue

Nesting loadable.lib components seems to work but requests happen in a waterfall-like fashion, which is not optimal. Can something like this be supported?

loadable.lib(() => Promise.all[import('moment'), import('somthing-else')])

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
gregbergecommented, Apr 3, 2019

Hello @BowlingX, you can create another file:

export { default as moment } from 'moment'
export { default as something } from './something'
0reactions
gregbergecommented, Apr 3, 2019

You can load them using loadable.lib and use the previous tip if you want.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is it possible to load many libraries at the same time ... - GitHub
Nesting loadable.lib components seems to work but requests happen in a waterfall-like fashion, which is not optimal.
Read more >
Loading library - Loadable Components
loadable.lib lets you defer the loading of a library. It takes a render props called when the library is loaded. ... You can...
Read more >
Load multiple packages at once - Stack Overflow
Several permutations of your proposed functions do work -- but only if you specify the character.only argument to be TRUE . Quick example:...
Read more >
4. Dynamically Loaded (DL) Libraries
Dynamically loaded (DL) libraries are libraries that are loaded at times other than during the startup of a program. They're particularly useful for ......
Read more >
An introduction to Webpack Code-Splitting, Loadable ...
(With HTTP/2 multiplexing, multiple request and response messages can be ... react-loadable is a very popular older third party library that ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found