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

fix(backend): Match Profiler display name in react #1316

Closed
wants to merge 1 commit into from

Conversation

eps1lon
Copy link

@eps1lon eps1lon commented Mar 18, 2019

Reconciles this fork with shared/getComponentName concerning unstable_Profiler. Not including the id was deliberate: facebook/react@9c990c2#r202042053

Context:
Currently trying to implement Profiler into enzyme (enzymejs/enzyme#2055). It has an API to find certain components by display name (not saying that this is useful) and display the component tree. It's not obvious what the display name for unstable_Profiler should look like since the component stack trace in react uses a different name than react-devtools.

Since the devtools also include the props of the Profiler component it looks redundant to me to include it in the display name.

Didn't find any other location that might affect the display name. Need some guidance if this isn't enough.

@bvaughn
Copy link
Contributor

bvaughn commented Aug 20, 2019

React DevTools has been rewritten and recently launched a new version 4 UI 🎉 The source code for this rewrite was done in a separate repository and is being merged into the main React repo.

Thank you for taking the time to contribute to this extension 🙇‍♂️

Because this PR is for the version code base, I am closing it. If you'd like to contribute to the new extension, please visit the new repository.

@bvaughn bvaughn closed this Aug 20, 2019
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.

3 participants