ctrlplusb / react-async-component

Resolve components asynchronously, with support for code splitting and advanced server side rendering use cases.
MIT License
1.45k stars 62 forks source link

Weird error when creating asyncComponent with router #39

Closed justgook closed 6 years ago

justgook commented 7 years ago
Warning: Failed child context type: Cannot read property 'asyncComponentsAncestor' of undefined
    in AsyncComponent (created by Route)
    in Route
    in div
    in Router (created by ConnectedRouter)
    in ConnectedRouter
    in Provider

looks like there is no validation - that context could not exist - so it throws that error - but after that works as expected (from my point of view)

justgook commented 7 years ago

looks like related to the https://github.com/facebook/react/issues/3392

Asp3ctus commented 7 years ago

any workarounds?

ctrlplusb commented 6 years ago

I have a fix for this in progress.

ctrlplusb commented 6 years ago

Fix is queued in master, should be released shortly.