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
I was trying to overwrite something like this
const Parent = types.model({
name: '',
alias: '',
get displayName() { return this.alias || this.name; }
})
const child = types.compose(Parent, {
type: '',
get displayName() { return this.alias || this.name + type; }
})
Cannot redefine property: displayName
I has changed mobx-state-tree(0.8.2) source to
descriptor.configurable = true; // line of 100
and it works
How can i resolve this error? Or configurable will be true in next version?
Sorry for my poor English.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#209>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABvGhOSlDwt9Jmu9UNXqB__D8_8OvThhks5sH5bbgaJpZM4OFMKO>
.
I was trying to overwrite something like this
I has changed mobx-state-tree(0.8.2) source to
and it works
How can i resolve this error? Or configurable will be true in next version?
Sorry for my poor English.
The text was updated successfully, but these errors were encountered: