You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since next Mobx update might be major due to native decorators support, it makes sense to revisit the API and remove deprecated features. Removing deprecated features gives less code to support for maintainers. For example here while mocking console.log I had to support both observer and useObserver usage:
The new decorators seem to be able to fit in a minor. Still, once they're out and stable for a while, it might be nice to push for a new major to remove the legacy decorators (and the makeObservable based api's?) to have a single uniform mechanism and make everything a bit leaner
Since next Mobx update might be major due to native decorators support, it makes sense to revisit the API and remove deprecated features. Removing deprecated features gives less code to support for maintainers. For example here while mocking console.log I had to support both
observer
anduseObserver
usage:mobx/packages/mobx-react-lite/__tests__/observer.test.tsx
Line 17 in 0143275
Here is the list of deprecated API I've found:
mobx/packages/mobx-react-lite/src/ObserverComponent.ts
Line 13 in 0143275
batchingForReactDom.js
,batchingForReactNative.js
,batchingOptOut.js
:mobx/packages/mobx-react-lite/batchingForReactDom.js
Line 2 in 0143275
isObserverBatched
since it's always returns true:mobx/packages/mobx-react-lite/src/utils/observerBatching.ts
Line 21 in 0143275
options
argument inobserver
:mobx/packages/mobx-react-lite/src/observer.ts
Line 65 in 0143275
flow
type checker support, types and tests since flow is no longer supported: mobx-undecorate problem with flow js nullable types #2792 (comment)Feel free to add missing API 👍 Once we agreed, I'll start working on PR.
The text was updated successfully, but these errors were encountered: