Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Conversation

@gaearon
Copy link
Contributor

@gaearon gaearon commented Aug 20, 2018

Updates constants to facebook/react#13444 and adds support for lazy types.

You need to update ReactVersion in local bundle and enable suspense to test these.

case ClassComponentLazy:
nodeType = 'Composite';
name = getDisplayName(fiber.type);
name = getDisplayName(resolvedType);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These shouldn't appear in the tree before type is resolved. So I'm assuming it is here.

children = [];
break;
case ForwardRef:
case ForwardRefLazy:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was more convenient to use tag than $$typeof here.

Copy link
Contributor

@bvaughn bvaughn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks okay. Did not test.

@gaearon gaearon merged commit ccf60b6 into master Aug 20, 2018
@gaearon
Copy link
Contributor Author

gaearon commented Aug 20, 2018

I didn't test extensively (especially with old React). But we'll test it at least a bit anyway before next release.

@gaearon gaearon deleted the uppp branch August 20, 2018 16:57
OrDuan pushed a commit to OrDuan/react-devtools that referenced this pull request Aug 23, 2018
* Update constants to match facebook/react#13444

* Update constants and support Lazy

* Fix lint
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants