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

Prevent React warning (and potential errors) about refs for stateless function components #2258

Merged
merged 2 commits into from
Aug 17, 2017

Conversation

davojan
Copy link
Contributor

@davojan davojan commented Aug 17, 2017

Disabled screen refs support for stateless function components because react doesn't support refs for them.

Without this fix there is a warning:

Warning: Stateless function components cannot be given refs. Attempts to access this ref will fail.

@aksonov aksonov merged commit 01a6bec into aksonov:master Aug 17, 2017
@aksonov
Copy link
Owner

aksonov commented Aug 17, 2017

Looks great!

@davojan davojan deleted the fix-stateless-refs branch August 17, 2017 16:35
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