-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle functions like forwardRef. (#5846)
- `createComponentRendererComponent` now creates a regular function instead of an arrow function and that function analyses the `arguments` global to determine what the actual arguments to the function are. Then applies some light heuristics to then fix the "props" to one of those arguments. - `applyPropsParamToPassedProps` reworked to handle the multiple function arguments. - `propsUsedByIdentifierOrAccess` now caters for multiple function parameters. - `codeUsesProperty` and associated functions now handle multiple function parameters. - `UtopiaJSXComponent.param` is now `UtopiaJSXComponent.params`. - `parseCode` now parses multiple parameters for a given function.
- Loading branch information
1 parent
826be03
commit 94965aa
Showing
22 changed files
with
882 additions
and
1,837 deletions.
There are no files selected for viewing
1,326 changes: 0 additions & 1,326 deletions
1,326
editor/src/components/canvas/__snapshots__/ui-jsx-canvas.spec.tsx.snap
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.