React.lazy does not support props in ctor

This issue has been created since 2022-11-21.

In @loadable/component it was possible to do:

const Component = loadable((props)=>import(`./letters/${props.letter}`)

<Component letter="X" />

Would be great to be able to do:

const Component = React.lazy((props)=>import(`./letters/${props.letter}`)

<Component letter="X" />

Looked at the react fiber source and see that it is not possible with React.lazy

fivethreeo wrote this answer on 2022-11-22

Also related #20638

fivethreeo wrote this answer on 2022-11-25

Solved with updating ‘@Loadable’ to work with react 18

More Details About Repo
Owner Name facebook
Repo Name react
Full Name facebook/react
Language JavaScript
Created Date 2013-05-24
Updated Date 2022-12-10
Star Count 198882
Watcher Count 6638
Fork Count 41302
Issue Count 1120

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Could not load dynamic library 'cudart64_110.dll' 4 2022-09-18 2022-10-13
ValueError: DenseElementsAttr could not be constructed from the given buffer. This may mean that the Python buffer layout does not match that MLIR expected layout and is a bug. 14 2022-04-27 2022-09-23
nginx-auth-ldap client 18 2022-02-20 2022-08-28
No such file or directory (os error 2) 8 2022-02-20 2022-09-21
[Bug]: unexpected behavior when connect with custom account 0 2022-10-23 2022-10-17
dsolve on a vector gives Python exception 11 2020-12-18 2022-11-18
Export Voronoi diagram? 1 2021-02-11 2022-11-11
git blame not working on WSL <resolved> 2 2022-10-10 2022-11-21
KotlinParseException: Text is not valid: [res as TranslationsSuccess.apply {}] 1 2021-12-17 2022-10-11
Not working with contractions 1 2022-08-27 2022-12-01
Finetuning using the existing weights 0 2022-02-09 2022-11-14
[Bug] How to open Linkis console, admin page and microservice management? 1 2022-02-17 2022-11-29
[Feature Request] Request Touch ID on app launch 1 2021-09-16 2022-10-25
Add Views handler for term aliased path 6 2021-10-29 2022-10-05
Broken link in documentation 1 2021-12-07 2022-11-03
服务功能是否可以添加http/https代理? 0 2021-07-20 2022-11-03
不支持vless配置导入导出 9 2021-07-03 2022-01-12
Contact Form Submission - Typo / Broken Link 2 2022-02-12 2022-11-25
Suggestion to allow data URL for audio 4 2020-05-13 2022-11-20
always out of date after update. can not up date to 1.13.72 1 2021-04-22 2022-12-07
Fix ur mod... 1 2021-11-04 2021-12-22
Make Kickout term and Kickout message configurable 1 2022-10-07 2022-11-05
Sign In with Apple error 5 2022-11-02 2022-11-10
Pandas .astype('category') dramatically decreases performance 15 2017-07-01 2022-11-07
contentSize in theme.json is applied differently in the editor and in the frontend 4 2022-07-10 2022-08-21
Automatically set `reusable` to `false` when a block has a `parent` defined 5 2021-09-29 2022-11-19
Add numeric array type 4 2021-09-02 2022-11-12
Mark jetbrains annotation as "provided" 0 2021-06-09 2022-11-28
network port occupation using the service mode failed 3 2022-08-11 2022-11-25
Support .NET 6 0 2021-11-17 2022-01-14
When two packages use the same Module.Name, neither can be used. 1 2022-02-04 2022-11-19
Add link[wiki/keymap-examples] to homepage (readme). 3 2019-03-23 2022-11-02
NaN gradients even after removing 0/0 value using torch.where 5 2019-01-24 2022-09-18
Unexpected CANCELED and CACHED operations with `COPY --link` 0 2022-11-26 2022-12-09
Fan Platform Missing Toggle Device Action 3 2022-04-01 2022-10-16
git_remote_callbacks: Using a repo URL formatted with square brackets results in malformed credentials 5 2022-01-04 2022-10-07
Unable to make newsletters public after sent to mailing list 0 2022-11-10 2022-11-27
stack update gives "fdLock: invalid argument (Invalid argument)" 5 2021-07-19 2022-11-18
`io.get_line()` reads Charlist instead of String 2 2021-08-17 2022-10-10
AttributeError: 'AttrDict' object has no attribute 'gst' 2 2021-12-06 2022-11-25
Handler not found for view SkiaSharp.Extended.UI.Controls.SKLottieView 10 2022-07-17 2022-12-02
System.ArgumentException: Unknown framework version 7.0 36 2022-06-24 2022-11-12
What am I doing wrong? 2 2021-09-25 2022-12-04
cannot get flame as package 8 2018-01-18 2022-12-09
Blazor sync context doesn't capture async void 0 2022-02-16 2022-09-17
[flutter_adaptive_scaffold] Leading and Trailing widgets are not visible on NavigationRail 1 2022-11-04 2022-11-30
[iPad]: Undo/Redo buttons are grayed out on iOS 5 2022-11-04 2022-12-08
Logo of index.html remains on while app is running 3 2022-11-04 2022-12-05
[linting_tool] Add lint rules list 2 2021-07-19 2022-11-11
[Canvaskit][Web] Large images do not appear with `WebGL: INVALID_VALUE: texImage2D: width or height out of range` 9 2022-11-04 2022-12-05