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:
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
observeranduseObserverusage: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
isObserverBatchedsince it's always returns true:mobx/packages/mobx-react-lite/src/utils/observerBatching.ts
Line 21 in 0143275
optionsargument inobserver:mobx/packages/mobx-react-lite/src/observer.ts
Line 65 in 0143275
flowtype 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.