-
It is more than feature request than a bug that's why I want to discuss it first. Suppose we have code like this: class AppState {
value = 0;
constructor() {
makeAutoObservable(this, {}, { autoBind: true });
}
increase() {
this.value++;
}
}
const state = new AppState();
spy((event) => {
if (event.type === 'action') {
console.log('spy', event);
}
});
const TimerView = observer(() => {
return <div>
<button onClick={() => state.increase()}>Value: {state.value}</button>
<button onClick={state.increase}>Value: {state.value}</button>
</div>
}); I expect
I am developing a logging library for Mobx. I'd be nice to have this property not empty to display more information about action for user. Is it possible to add it here? Reproduction: https://codesandbox.io/s/interesting-cookies-3p31q?file=/index.js |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Done #3141 :) |
Beta Was this translation helpful? Give feedback.
-
Thank you @urugator ! 👍 |
Beta Was this translation helpful? Give feedback.
Done #3141 :)