Skip to content

Releases: mobxjs/mobx

mobx-react@7.5.0

23 May 11:14
9415845
Compare
Choose a tag to compare

Minor Changes

mobx-react@7.4.0

06 May 09:20
2e14aad
Compare
Choose a tag to compare

Minor Changes

  • 4c5e75cd #3382 Thanks @iChenLei! - replace the deprecated react type definition with recommended type definition

  • bd4b70d8 #3387 Thanks @mweststrate! - Added experimental / poor man's support for React 18. Fixes #3363, #2526. Supersedes #3005

    • Updated tests, test / build infra, peerDependencies to React 18
    • [breaking icmw upgrading to React 18] Already deprecated hooks like useMutableSource will trigger warnings in React 18, which is correct and those shouldn't be used anymore.
    • [breaking icmw upgrading to React 18] When using React 18, it is important that act is used in unit tests around every programmatic mutation. Without it, changes won't propagate!
    • The React 18 support is poor man's support; that is, we don't do anything yet to play nicely with Suspense features. Although e.g. startTransition basically works, MobX as is doesn't respect the Suspense model and will always reflect the latest state that is being rendered with, so tearing might occur. I think this is in theoretically addressable by using useSyncExternalStore and capturing the current values together with the dependency tree of every component instance. However that isn't included in this pull request 1) it would be a breaking change, whereas the current change is still compatible with React 16 and 17. 2) I want to collect use cases where the tearing leads to problems first to build a better problem understanding. If you run into the problem, please submit an issue describing your scenario, and a PR with a unit tests demonstrating the problem in simplified form. For further discussion see #2526, #3005

Patch Changes

mobx-react-lite@3.4.0

06 May 09:20
2e14aad
Compare
Choose a tag to compare

Minor Changes

  • 4c5e75cd #3382 Thanks @iChenLei! - replace the deprecated react type definition with recommended type definition

  • bd4b70d8 #3387 Thanks @mweststrate! - Added experimental / poor man's support for React 18. Fixes #3363, #2526. Supersedes #3005

    • Updated tests, test / build infra, peerDependencies to React 18
    • [breaking icmw upgrading to React 18] Already deprecated hooks like useMutableSource will trigger warnings in React 18, which is correct and those shouldn't be used anymore.
    • [breaking icmw upgrading to React 18] When using React 18, it is important that act is used in unit tests around every programmatic mutation. Without it, changes won't propagate!
    • The React 18 support is poor man's support; that is, we don't do anything yet to play nicely with Suspense features. Although e.g. startTransition basically works, MobX as is doesn't respect the Suspense model and will always reflect the latest state that is being rendered with, so tearing might occur. I think this is in theoretically addressable by using useSyncExternalStore and capturing the current values together with the dependency tree of every component instance. However that isn't included in this pull request 1) it would be a breaking change, whereas the current change is still compatible with React 16 and 17. 2) I want to collect use cases where the tearing leads to problems first to build a better problem understanding. If you run into the problem, please submit an issue describing your scenario, and a PR with a unit tests demonstrating the problem in simplified form. For further discussion see #2526, #3005

mobx@6.5.0

17 Mar 10:37
3fa1f4d
Compare
Choose a tag to compare

Minor Changes

mobx@6.4.2

25 Feb 10:11
5bd5ec7
Compare
Choose a tag to compare

Patch Changes

  • 2caf7e1a #3316 Thanks @urugator! - requiresObservable always takes precedence over global reactionRequiresObservable

mobx@6.4.1

19 Feb 13:20
b0b6787
Compare
Choose a tag to compare

Patch Changes

mobx@6.4.0

17 Feb 18:16
84cad9b
Compare
Choose a tag to compare

Minor Changes

  • 6b926833 #3287 Thanks @kubk! - Remove any from 'merge' and 'replace' methods of ObservableMap

Patch Changes

  • dee35be4 #3300 Thanks @kubk! - Make the error message about Object.freeze more informative

mobx-react@7.3.0

17 Feb 18:16
84cad9b
Compare
Choose a tag to compare

Minor Changes

  • 59b42c28 #3282 Thanks @urugator! - observer(forwardRef(fn)) no longer generates extra <Observer> element and applies memo correctly

Patch Changes

  • Updated dependencies [59b42c28]:
    • mobx-react-lite@3.3.0

mobx-react-lite@3.3.0

17 Feb 18:16
84cad9b
Compare
Choose a tag to compare

Minor Changes

mobx@6.3.13

21 Jan 18:58
c85a747
Compare
Choose a tag to compare

Patch Changes