Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Local fork] TC 39 decorators #3790

Merged
merged 21 commits into from
Nov 11, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removed dead code
  • Loading branch information
mweststrate committed Nov 11, 2023
commit 3bbbdf3f3fe38d730c9d10229f89b46c780db897
16 changes: 0 additions & 16 deletions packages/mobx/src/types/observableobject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -712,22 +712,6 @@ function getCachedObservablePropDescriptor(key) {
)
}

const fallthroughDescriptorCache = Object.create(null)

export function getCachedFallthroughPropDescriptor(key) {
return (
fallthroughDescriptorCache[key] ||
(fallthroughDescriptorCache[key] = {
get() {
return Reflect.get(Object.getPrototypeOf(this), key, this)
},
set(v) {
return Reflect.set(Object.getPrototypeOf(this), key, v, this)
}
})
)
}

export function isObservableObject(thing: any): boolean {
if (isObject(thing)) {
return isObservableObjectAdministration((thing as any)[$mobx])
Expand Down