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
This should be covered by #21699. Today we have some logic in the compiler that is tightly coupled to JSX.Element type. With #21699, we plan on making the rerun type of an SFC be anything as declare in the factory function. this should allow an SFC to be a string (react 16), or an array, a promise, or really any type.
Search Terms:
JSX async promise class functional
Code
JSXML.ts
Expected behavior:
This should compile without errors to
Actual behavior:
The JSX call to AsyncComponent gives the error
JSX element class does not support attributes because it does not have a 'props' property.
It seems that TS believes the AsyncComponent to be a class instead of an async function.
The text was updated successfully, but these errors were encountered: