Replies: 3 comments 8 replies
-
If we export Btw ES newly supports |
Beta Was this translation helpful? Give feedback.
-
Yeah depends on minifier settings, some configs will minify the constructor
name.
…On Tue, 22 Mar 2022, 13:42 urugator, ***@***.***> wrote:
Occured to me as well, but then I thought it would not work when
minified.... ?
—
Reply to this email directly, view it on GitHub
<#3341 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAN4NBBTAIUQSNOZVBLFEKTVBHE6HANCNFSM5RDVZUSA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@mweststrate @urugator Thank you, you were right. I've built mobx/packages/mobx/tsdx.config.js Line 25 in 56bfb67
Wouldn't it increase the bundle size? Now it makes sense for me to make |
Beta Was this translation helpful? Give feedback.
-
If you run this codesandbox you'll notice that there is the following
spy
report:Notice the
oldValue: CaughtException
. Technically the spy report is correct because the initial value of a computed isCaughtException
:mobx/packages/mobx/src/core/computedvalue.ts
Line 91 in e60b36c
But from a library consumer point of view the initial value of
isEven
computed istrue
. I've noticed it while developing a logging library for Mobx. I keep getting log messages like this:I'd like to filter such messages out. But neither
CaughtException
norisCaughtException
is a part of public Mobx API. What'd you suggest me to solve the issue?Beta Was this translation helpful? Give feedback.
All reactions