ctrlplusb/react-async-component

Weird error when creating asyncComponent with router

justgook opened this issue · 4 comments

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)

looks like related to the facebook/react#3392

any workarounds?

I have a fix for this in progress.

Fix is queued in master, should be released shortly.