Skip to content
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

Support for optional chaining #4434

Closed
pronebird opened this issue Jul 21, 2017 · 1 comment
Closed

Support for optional chaining #4434

pronebird opened this issue Jul 21, 2017 · 1 comment

Comments

@pronebird
Copy link

pronebird commented Jul 21, 2017

Flow does not understand optional chaining from babel 7 alpha, but it should.

Reference: babel/babel#5813

While this is stage-1 still and experimental a failure to support it will definitely make it difficult to adopt the new proposal and continue using flow at the same time.

I hope it's a matter of upgrading babel and tagging @next release.

Example:

class AccountInput extends Component {
  _ref: ?HTMLInputElement;
  focus() {
    this._ref?.focus();
//            ^ Unexpected token .
  }

}
@pronebird
Copy link
Author

which is #4303

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants