Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Fix parsing of arrow expressions in ternaries. #367

Merged
merged 1 commit into from
Apr 3, 2021
Merged

Conversation

IwanKaramazow
Copy link
Contributor

Arrow functions in the "ternary true branch" where picked up as nested arrows:
x ? y => () : onChange for the parser was x ? y => (() : onChange => …)

The fix is to pass the right context through.

Fixes #363

Arrow functions in the "ternary true branch" where picked up as nested arrows:
`x ? y => () : onChange` for the parser was `x ? y => (() : onChange => …)`

The fix is to pass the right context through.

Fixes #363
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reformat issue with function in ternary in JSX
1 participant