Skip to content

Commit

Permalink
Update faq.md (#2225)
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviergonz committed Dec 6, 2019
1 parent 98ba15f commit a590889
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/faq/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ hide_title: true

MobX runs on any ES5 environment. That means that Node.js, Rhino and all browsers except for IE8 are supported. See [caniuse.com](http://caniuse.com/#feat=es5)

##### While using Typescript I get `error TS2304: Cannot find name 'AsyncGenerator'`

Edit your `tsconfig.json` and ensure your `lib` section array includes `es2018.asynciterable` or one of its super-sets (e.g. `es2018` or `esnext`). Note that this won't affect code generation in anyway, it just affects the standard type definitions the Typescript compiler will use, which should be a safe change. If your `tsconfig.json` does not include a lib section the defaults are:
* ES5 target: DOM,ES5,ScriptHost
* ES6 target: DOM,ES6,DOM.Iterable,ScriptHost

So you'd need to add `es2018.asynciterable` to those defaults in this particular case.

##### Can MobX be combined with RxJS?

Yes, you can use [toStream and fromStream from mobx-utils](https://github.com/mobxjs/mobx-utils#tostream) to use RXJS and other TC 39 compatible observables with mobx.
Expand Down

0 comments on commit a590889

Please sign in to comment.