Skip to content

set displayName in contexts#166

Merged
janicduplessis merged 1 commit intoAppAndFlow:masterfrom
dulmandakh:patch-1
Jan 8, 2021
Merged

set displayName in contexts#166
janicduplessis merged 1 commit intoAppAndFlow:masterfrom
dulmandakh:patch-1

Conversation

@dulmandakh
Copy link
Copy Markdown
Contributor

@dulmandakh dulmandakh commented Jan 6, 2021

Summary

Set displayName for contexts so that they rendered with proper name in React Devtools, thus improve developer experience.

Test Plan

When you see tree in React Devtools, it'll show SafeAreaInsetsContext.Provider and SafeAreaFrameContext.Provider instead of just mere Context.Provider.

Copy link
Copy Markdown
Collaborator

@janicduplessis janicduplessis left a comment

Choose a reason for hiding this comment

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

👍 Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants