mobxjs/mobx
 Watch   
 Star   
 Fork   
3 days ago
mobx

mobx-react-lite@5.1.4

Patch Changes

11 days ago
mobx

eslint-plugin-mobx@0.2.2

Patch Changes

11 days ago
mobx

mobx-react@10.0.4

Patch Changes

11 days ago
mobx

mobx-react-plugin@1.0.3

Patch Changes

11 days ago
mobx

mobx@7.1.7

Patch Changes

  • 277264ce070429b87178cd86432f12d881bd11bf #4774 Thanks @gesposito! - Fix private @observable accessor fields and private @computed getters sharing state when a class and its subclass both declare one with the same name, such as #value. They are separate members, but MobX kept both under the name "#value", so the parent's field read and wrote the subclass's value. Private members are now kept under a key of their own. As a result isObservableProp(obj, "#value"), getAtom(obj, "#value") and observe(obj, "#value", ...) no longer find a private member by its name, and change events of a private field carry a symbol as name.

  • efbff0be0157cd8b962e88ba04109aedc11b73d9 #4776 Thanks @kubk! - Remove dead code and stop exporting internal helpers that nothing outside their own module uses

  • 410d1fa795e21741e1fde217e037f4e5483677bd #4779 Thanks @kubk! - Remove the unused internal fields ComputedValue.triggeredBy_ and ObservableValue.hasUnreportedChange_

11 days ago
mobx

mobx-react-lite@5.1.3

Patch Changes

14 days ago
mobx

mobx@7.1.6

Patch Changes

17 days ago
mobx

mobx-react-plugin@1.0.2

Patch Changes

  • b433c95720ced6f987d2379913933d49517cb48f #4770 Thanks @kubk! - Faster transforms: files that cannot contain components, hooks or flows are skipped without being parsed, and the Vite plugin only generates code when something changed. Code generation options for the Vite plugin now go in babel.generatorOpts.
18 days ago
mobx

mobx-react-plugin@1.0.1

Patch Changes

  • 99ff7cefd3fa1bc7724705b89ebcf3bfcc0a0821 #4767 Thanks @kubk! - Vite plugin: fix "Invalid hook call" and a page reload on the first dev-server start. Vite's dependency scanner does not see the observer import the plugin adds to components, so it discovered mobx-react-lite late and re-optimized while the page was loading. The plugin now adds mobx-react-lite to optimizeDeps.include.
18 days ago
mobx

mobx-react-plugin@1.0.0

Major Changes

  • 920f93f2aecc843523f7b598e5f808021b5e2933 #4735 Thanks @kubk! - Add mobx-react-plugin, which wraps React components in observer, adds the "use no memo" directive so React Compiler leaves observed components to MobX, and turns async methods of observable classes and objects into MobX flows. Each feature can be switched off.