-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add label to mobxpromise instance for debugging purposes #7
base: master
Are you sure you want to change the base?
Conversation
@@ -43,6 +43,8 @@ export type MobxPromiseInputParams<R> = { | |||
* It will not be called for out-of-date promises. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@onursumer this is the only file that need be reviewed. the rest are generated by build.
src/MobxPromise.ts
Outdated
if (localStorage.debugMP) { | ||
debugger; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this debugger
on purpose? Do we need this because source code is not mapped?
// we need to | ||
if (this.isComplete === false) { | ||
/*@ts-ignore*/ | ||
if (this.onPrematureRead) this.onPrematureRead.call(this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@onursumer this is a little nicer. i need to be able to execute some stuff when this happens so i can now configure that in code by tacking on a method to prototype
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
No description provided.