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.

Loadable-component doesn't have any stratgies for prefetching

See original GitHub issue

Do you want to report a bug or request a feature?

React cool starter uses loadable-components which doesn’t support prefetch of chunks in SSR and there is no future target towrad it.

Expected Behavior

Replacing package with react-loadable would be beneficiary

Actual Behavior

In SSR page rendering takes place with out any related styles which results in FOUC.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
wellyshencommented, Oct 1, 2018

@MortezaT I’ll take time to consider about it, thanks

2reactions
saeedseyficommented, Sep 30, 2018

I have the same issue(FOUC) with my loadable components. Please advise.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prefetching - Loadable Components
Manually preload a component. It is possible to force the preload of a component. It has the same effect as if the component...
Read more >
Preload scripts #77 - gregberge/loadable-components - GitHub
Can I some hove get the path to chunk for creating preload scripts on the ... Loadable-component doesn't have any stratgies for prefetching...
Read more >
An introduction to Webpack Code-Splitting, Loadable ...
An introduction to Webpack Code-Splitting, Loadable/component, and Resource Hints. webpack, loadable components, and prefetch and preload ...
Read more >
Why are my prefetched scripts not being used? (webpack)
The prefetch request has a different Accept value in its header (requests ... import loadable from '@loadable/component'; import React from ...
Read more >
@merchx-v2/react-snap NPM | npm.io
The same approach will work with React.lazy , but React.lazy doesn't provide a prefetch method ( load or preload ), so you need...
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