Skip to content
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

Use react-is instead of manual element type checks in pretty-format #8058

Closed
wants to merge 5 commits into from
Closed

Use react-is instead of manual element type checks in pretty-format #8058

wants to merge 5 commits into from

Conversation

mackness
Copy link
Contributor

@mackness mackness commented Mar 6, 2019

Summary

Instead of manually checking the element's $$typeof symbol in the pretty-format package, the react-is package can be used to accomplish the same element checks in a nicer way. Resolves #7895

Test plan

Since there is no functionality change existing tests should suffice.

@mackness mackness changed the title use react-is instead of manual element type checks Use react-is instead of manual element type checks Mar 6, 2019
@mackness mackness changed the title Use react-is instead of manual element type checks Use react-is instead of manual element type checks in pretty-format Mar 6, 2019
@SimenB
Copy link
Member

SimenB commented Mar 6, 2019

Super grateful for the PR @mackness, but @Prabhakar-17 has been working on this for some time, so I'd like to see his PR merged instead.

@SimenB SimenB closed this Mar 6, 2019
@mackness
Copy link
Contributor Author

mackness commented Mar 6, 2019

@SimenB Totally understand, I'll look for another unclaimed issue :)

@SimenB
Copy link
Member

SimenB commented Mar 6, 2019

Awesome, thanks for understanding!

@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2021
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.

Use react-is in pretty-format
3 participants