8000 refactor: change react promise status type by ifabriciorodrigues · Pull Request #31623 · facebook/react · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

refactor: change react promise status type #31623

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ifabriciorodrigues
Copy link

Issue #31467

Summary

This PR standardizes the use of predefined types for the ReactPromise function's status field. Currently, it accepts any type for the status field, which reduces code readability and prevents proper autocompletion.

How did you test this change?

I ran the tests using yarn test and yarn test --prod. Since this is a type change, all relevant usage scenarios were already covered during development and testing.

Copy link
vercel bot commented Nov 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 6, 2025 6:15pm

@ifabriciorodrigues ifabriciorodrigues force-pushed the refactor/change-react-promise-status-type branch from 0847985 to bde002b Compare November 25, 2024 13:57
@ifabriciorodrigues ifabriciorodrigues force-pushed the refactor/change-react-promise-status-type branch from bde002b to fc5dcd6 Compare December 3, 2024 13:56
@ifabriciorodrigues ifabriciorodrigues force-pushed the refactor/change-react-promise-status-type branch from fc5dcd6 to 4c57b79 Compare December 4, 2024 23:24
@ifabriciorodrigues ifabriciorodrigues force-pushed the refactor/change-react-promise-status-type branch from 4c57b79 to 0d2be62 Compare December 5, 2024 21:54
@ifabriciorodrigues ifabriciorodrigues force-pushed the refactor/change-react-promise-status-type branch from 0d2be62 to d77e663 Compare December 6, 2024 20:24
@ifabriciorodrigues ifabriciorodrigues force-pushed the refactor/change-react-promise-status-type branch from d77e663 to c278617 Compare December 21, 2024 01:36
@ifabriciorodrigues ifabriciorodrigues force-pushed the refactor/change-react-promise-status-type branch from c278617 to 3e74f71 Compare January 6, 2025 18:14
@ifabriciorodrigues ifabriciorodrigues force-pushed the refactor/change-react-promise-status-type branch from 3e74f71 to b2d641d Compare January 15, 2025 17:15
@ifabriciorodrigues ifabriciorodrigues force-pushed the refactor/change-react-promise-status-type branch from b2d641d to 5df7c59 Compare March 25, 2025 11:09
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.

2 participants
0