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

[eslint] Consider useRef() as ... as constant #18496

Merged
merged 1 commit into from
Apr 5, 2020

Conversation

sophiebits
Copy link
Collaborator

@sophiebits sophiebits commented Apr 5, 2020

Sometimes you need to use casts, eg: DefinitelyTyped/DefinitelyTyped#28884 (comment). This change ignores them and allows you to omit the ref object from the deps list.

Test Plan: unit tests

@sophiebits sophiebits requested a review from gaearon April 5, 2020 06:10
@sophiebits sophiebits force-pushed the eslint-as branch 2 times, most recently from e63ef9f to 3927f36 Compare April 5, 2020 06:12
@sizebot
Copy link

sizebot commented Apr 5, 2020

No significant bundle size changes to report.

Size changes (stable)

Generated by 🚫 dangerJS against f3920f3

@sizebot
Copy link

sizebot commented Apr 5, 2020

No significant bundle size changes to report.

Size changes (experimental)

Generated by 🚫 dangerJS against f3920f3

@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 5, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit e86e306:

Sandbox Source
lucid-fire-00f5e Configuration

@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 5, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit e63ef9f:

Sandbox Source
crazy-goldwasser-k9v95 Configuration

@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 5, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit f3920f3:

Sandbox Source
heuristic-water-6i9k4 Configuration

@facebook facebook deleted a comment from mertxe78 Apr 5, 2020
Sometimes you need to use casts, eg: DefinitelyTyped/DefinitelyTyped#28884 (comment). This change ignores them and allows you to still omit the ref object from the deps list.

Test Plan: unit tests
Copy link
Collaborator

@gaearon gaearon left a comment

Choose a reason for hiding this comment

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

cool

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

Successfully merging this pull request may close these issues.

4 participants