autobind-decorator icon indicating copy to clipboard operation
autobind-decorator copied to clipboard

Rendering does not work when using mobx together

Open ghost opened this issue 7 years ago • 3 comments

If you are using mobx together, if you use @boundClass on the react component, if you move to another page after the page call and go back to that page, you will not render it, even though you change the value of @observable in mobx

ghost avatar Dec 10 '18 10:12 ghost

Can you try https://github.com/andreypopp/autobind-decorator/pull/79 and see if it fixes your problem?

stevemao avatar Dec 10 '18 22:12 stevemao

Same problem for me, nearly blew my brains narrowing it down to autobind decrator. The main gotcha is if you are using HMR with parcel (not sure about webpack), somehow the issue is masked, so it will only show itself in production builds.

realfresh avatar Dec 23 '18 05:12 realfresh

@realfresh can you try #79?

stevemao avatar Dec 23 '18 07:12 stevemao