setting reaction requiresObservable: false could turn off warnings #3313
KevinBrogan
started this conversation in
Ideas
Replies: 3 comments 1 reply
-
Similar to #3214. I will take a look at it once I have a sec. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks! Apparently I don't know how to use github to search. I did a search
for requiresReaction_ and nothing came up.
I took a look at https://github.com/mobxjs/mobx/pull/3214/files and it's
basically the ts script version of the local changes that I made myself.
He's chosen to use a conditional check on the type of
this.requiresReaction_.
Personally, I prefer a nullish coalescing operator, as in the second screen
shot, although I didn't edit the original typeScript. I edited the compiled
javascript for my local copy.
I've not had a reason to look at overriding any of the other configuration
options, but if overrides exist elsewhere, it would be good to make all
options consistently overridable.
Cheers,
Kevin
.
[image: image.png]
[image: image.png]
…On Thu, Feb 24, 2022 at 12:11 AM urugator ***@***.***> wrote:
Similar to #3214 <#3214>. I will take
a look at it once I have a sec.
—
Reply to this email directly, view it on GitHub
<#3313 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAK4VQ72KV262NI5XR4ZEPLU4XR43ANCNFSM5PD56LQA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Fixed in 6.4.2 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I can setup a reaction and pass it the options
{requiresObservable:true}
to turn on the config warning for just that one reaction, instead of turning them all on withconfigure({reactionRequiresObservable: true})
, but I can't do the opposite.I would like to be able turn off the global config on a case by case basis.
My use case is dealing with user generated code, and the user may decide to not output an observable property value. I can't leave warnings on for my code and off for user code but that would be very useful.
Beta Was this translation helpful? Give feedback.
All reactions