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
Hello, thank you for this library, but I can't use it with new JSX Transform introduced in React 17.
I have debugged the reselector's source code and found, that in this lineisElement function always returns false, because in the new jsx runtime transform we don't have in this linename === 'React' and property === 'createElement'. At the current moment I don't found any solution how to detect if jsx compiled to _jsx('h1', { children: 'Hello world' });
instead to React.createElement('h1', null, 'Hello world');
The text was updated successfully, but these errors were encountered:
Hello, thank you for this library, but I can't use it with new JSX Transform introduced in React 17.
I have debugged the reselector's source code and found, that in this line
isElement
function always returnsfalse
, because in the new jsx runtime transform we don't have in this linename === 'React'
andproperty === 'createElement'
. At the current moment I don't found any solution how to detect if jsx compiled to_jsx('h1', { children: 'Hello world' });
instead to
React.createElement('h1', null, 'Hello world');
The text was updated successfully, but these errors were encountered: