Skip to content
This repository was archived by the owner on Jun 8, 2026. It is now read-only.

Add Suspense to Router and Lazy loading of page components - #42

Draft
imnotteixeira wants to merge 1 commit into
developfrom
fix/router-lazy-load
Draft

imnotteixeira wants to merge 1 commit into
developfrom
fix/router-lazy-load

Conversation

@imnotteixeira

Copy link
Copy Markdown
Collaborator

This change takes advantage of the recent React.lazy and React.Suspense APIs which allow us to load our components more selectively, relieving the end user from loading components he is not even looking at.

Extra: Added progress bars between page changes, it looks so good.

@imnotteixeira

Copy link
Copy Markdown
Collaborator Author

I would like to highlight that the Suspense API (required to use React.Lazy()) is still experimental, however, the usage of the lazy feature alone should be ok, the concurrent mode is the one that is still not ready yet. So this should be taken into account before merging.

@imnotteixeira
imnotteixeira marked this pull request as draft April 14, 2020 13:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant