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

fix(react): provide displayName for our core components #1423

Merged
merged 1 commit into from
Jun 26, 2024
Merged

Conversation

oliverlaz
Copy link
Member

Overview

Adds .displayName property to our core SDK components.
This should make it easier to debug our SDK in production/minified environments.

Context: https://getstream.slack.com/archives/C06CF5TKRGA/p1719396728909279

Comment on lines +8 to +12
export const StreamCall: ComponentType<
PropsWithChildren<StreamCallProviderProps>
> = StreamCallProvider;

StreamCall.displayName = 'StreamCall';
Copy link
Member Author

Choose a reason for hiding this comment

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

I have mixed feelings about whether this should go to react-bindings or not. Any thoughts?

@oliverlaz oliverlaz merged commit 724c444 into main Jun 26, 2024
14 checks passed
@oliverlaz oliverlaz deleted the display-name branch June 26, 2024 12:52
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.

None yet

2 participants