-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible false-positive with memo default export #27
Comments
The solution is to write: import {memo} from "react";
const MemoFoo = memo(function Foo() {
return <div/>;
});
MemoFoo.displayName = "MemoFoo";
export default MemoFoo; This is a bot verbose I agree but it's more imposed by the React team to improve naming inside the react devtool and stacktraces. |
As far as I'm aware in regards to DevTools, The |
Fixed, will released later this week when other issues are handled! |
Released in v0.4.4! |
Results in
As far as I'm aware this is still a named component because of the function name and the module is asking for something impossible because a default export can not be named.
(The reason this can not be changed to a named export is because lazy requires a default export).
The text was updated successfully, but these errors were encountered: