Closed bum-hyun closed 4 years ago
It depends on what this.data
is, which can't be told from your code example, if the object this.data
is shared, then yes the dealTypeId
is shared. Please provide a sandbox reproduction and clarify how this issue is related to MobX since it is filed in this repo, as I don't see a single line related to MobX so far in your question.
Oh...It's my fault That part wasn't the cause. I should have used @computed, but I used @get if @get is in Store, It's not inheriting properly.
For avoiding duplication, I did like below
common.ts
saleStore.ts
purchase.ts
index.ts
in component
And, results are 2, 2 It seems like overriding