Skip to content

eslint-plugin-react-hooks: support async functions in additional hooks (#19034)#19833

Closed
MichaelBelousov wants to merge 1 commit intofacebook:masterfrom
MichaelBelousov:allow-async-additional-hooks-with-exhaustive-deps
Closed

eslint-plugin-react-hooks: support async functions in additional hooks (#19034)#19833
MichaelBelousov wants to merge 1 commit intofacebook:masterfrom
MichaelBelousov:allow-async-additional-hooks-with-exhaustive-deps

Conversation

@MichaelBelousov
Copy link

Summary

support async functions in additional hooks (#19034)

Simply don't warn users about using an async function as the first
argument when linting additional hooks, since it is an unfounded
restriction to custom dependency-using hooks.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 14, 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 81a7d4a:

Sandbox Source
React Configuration

@sizebot
Copy link

sizebot commented Sep 14, 2020

No significant bundle size changes to report.

Size changes (experimental)

Generated by 🚫 dangerJS against 81a7d4a

@sizebot
Copy link

sizebot commented Sep 14, 2020

No significant bundle size changes to report.

Size changes (stable)

Generated by 🚫 dangerJS against 81a7d4a

facebook#19034)

Simply don't warn users about using an async function as the first
argument when linting additional hooks, since it is an unfounded
restriction to custom dependency-using hooks.
@MichaelBelousov MichaelBelousov force-pushed the allow-async-additional-hooks-with-exhaustive-deps branch from 810292c to 81a7d4a Compare September 14, 2020 17:45
@MichaelBelousov
Copy link
Author

just force pushed the commit with prettier ran over changes

@MichaelBelousov
Copy link
Author

MichaelBelousov commented Sep 15, 2020

I think this will end up getting closed in favor of #18861 but I'll leave it up until that's resolved

@stale
Copy link

stale bot commented Jan 9, 2022

This pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated.

@stale stale bot added the Resolution: Stale Automatically closed due to inactivity label Jan 9, 2022
@sebmarkbage sebmarkbage deleted the branch facebook:master October 20, 2022 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Resolution: Stale Automatically closed due to inactivity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Comments