Skip to content

Commit

Permalink
Fixes issue with combining inferno-mobx observer with animations (#1587)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gwenio authored Dec 28, 2021
1 parent c658a41 commit 6508421
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/inferno-mobx/src/observer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ const reactiveMixin = {
});
(reaction as any).reactComponent = this;
(reactiveRender as any).$mobx = reaction;
(reactiveRender as any).$base = this.render;
this.render = reactiveRender;
return reactiveRender();
};
Expand Down Expand Up @@ -205,6 +206,7 @@ const reactiveMixin = {

if (this.render.$mobx) {
this.render.$mobx.dispose();
this.render = this.render.$base;
}

if (isDevtoolsEnabled) {
Expand Down

0 comments on commit 6508421

Please sign in to comment.