Uh oh!
There was an error while loading. Please reload this page.
[Codegen 102]: merge getExtendsProps & getProps fns - Flow - #36891
[Codegen 102]: merge getExtendsProps & getProps fns - Flow#36891Pranav-yadav wants to merge 1 commit into
getExtendsProps & getProps fns - Flow#36891Conversation
@cipolleschi do we want to extract final |
Pranav-yadav
commented
Apr 13, 2023
Also, both flow and lint are green yet the tests seem to fail. Am I missing something ? |
cipolleschi
commented
Apr 13, 2023
Hi @Pranav-yadav, thanks for taking the time to look into this. You can also look at the twin PR here for more inspiration.
We can move both to
Yeah, tests are failing. Do they fail locally for you or do they pass locally? So, I think you moved something that you shouldn't and now it fails to find the definition. I'll try to rollback the changes and I'll try to apply them one at the time to see what broke the system. |
cipolleschi
left a comment
There was a problem hiding this comment.
Hi @Pranav-yadav! I pointed out some changes to help you mov forward.
Let me know if you need further help here!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Thanks @cipolleschi. I started again with atomic changes and to make sure everything works as before, eventually I had to move the entire PS: If we still want to keep |
Base commit: cff4bc8 |
Also, a general question: Edit: Actually, the main question is about ECMAScript versions compatibility :) |
facebook-github-bot
commented
Apr 17, 2023
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
cipolleschi
commented
Apr 17, 2023
/rebase |
1 similar comment
Pranav-yadav
commented
Apr 17, 2023
/rebase |
The rebase comments didn't work. Strange! 🤔 Btw, looks like you missed the following comment;
|
Pranav-yadav
commented
Apr 18, 2023
/rebase |
4d3f7f2 to
90a37bcComparePranav-yadav
commented
Apr 19, 2023
/rebase |
Pranav-yadav
commented
Apr 19, 2023
ping @cipolleschi whenever you get time have a look at it. |
90a37bc to
2f516ceComparePranav-yadav
commented
Apr 22, 2023
/rebase Reason: CI seems to be fixed! |
- rm `extends.js` since, this diff simplifies it's dependents, - it's fns are moved to `props.js` only; to simplify further.
2f516ce to
23740e3Comparefacebook-github-bot
commented
Apr 24, 2023
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
cipolleschi
commented
Apr 24, 2023
Hi @Pranav-yadav, you can see the engine we support from the |
Pranav-yadav
commented
Apr 24, 2023
Thanks. |
facebook-github-bot
commented
Apr 24, 2023
@cipolleschi merged this pull request in efc6e14. |
Summary:
[Codegen 102] This PR is subtask of umbrella #34872. It extracts the code to compute the
extendsPropsand the props properties in Flow in agetProps() -> {extendsProps, props}function into the sameindex.jsfile. This will help unifying thebuildComponentSchemafunctions between Flow and TS so we can factor it out in a later step.Changelog:
[INTERNAL][CHANGED] - merge
getExtendsProps&getPropsfns intogetPropsfn - Flow.Test Plan:
yarn flow && yarn test react-native-codegen--> should be green.