You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 1, 2018. It is now read-only.
fatal: type is not a functionstack=TypeError:type is not a function
at prepareElement (FUSION_APP_DIR/node_modules/fusion-react-async/src/prepare.js:64:28)
at _prepare (FUSION_APP_DIR/node_modules/fusion-react-async/src/split.js:12:7)
at Promise.all.React__default.Children.toArray.map.child (FUSION_APP_DIR/node_modules/fusion-react-async/src/split.js:14:1)
at Array.map (<anonymous>)
at prepareElement.then (FUSION_APP_DIR/node_modules/fusion-react-async/src/split.js:15:42)
at <anonymous>
at process._tickDomainCallback (internal/process/next_tick.js:228:7), message=type is not a function, captureType=request
Expected behavior
It should be able to handle react tree that contains <Provider /> + <Consumer /> component from the new React.createContext() api.
Preliminary investigation shows that we can detect if the type of an element is a context-consumer|provider type (or even Fragment type) using the react-is package.
The text was updated successfully, but these errors were encountered:
koulmomo
added a commit
to koulmomo/fusion-react-async
that referenced
this issue
Apr 10, 2018
Type of issue
Both a feature and a bug. Bug because any apps trying to render using the new context api are broken.
Description
If your react tree contains
<Provider />
or<Consumer />
components created using the new Reactv16.3.0
createContext
APICurrent behavior
Type error with message:
Expected behavior
It should be able to handle react tree that contains
<Provider />
+<Consumer />
component from the newReact.createContext()
api.Preliminary investigation shows that we can detect if the type of an element is a context-consumer|provider type (or even Fragment type) using the
react-is
package.The text was updated successfully, but these errors were encountered: