Closed peterm-canva closed 4 months ago
Latest commit: 281179f25ce82b5599f8c0168c37441096049aaf
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Looking great again, thanks a lot!
My project stopped working after this update. No error in output.
Will check exactly, what's happening
@wh1sp3r could be related to https://github.com/mobxjs/mobx/issues/3918
I'll try to make a repro case this weekend and if it succeeds send a PR over to bump the version.
Following on from https://github.com/mobxjs/mobx/pull/3880, use a bitfield to reduce the size of
Atom
andReaction
. Large apps can have 10s or 100s of thousands of these. Also further shrinkComputedValue
by storingdiffValue
in the bitfield, because it's only ever0
or1
.Memory Savings
ComputedValue
Atom
ObservableValue
(inherits fromAtom
)Reaction
Name Changes
Note this PR changes the names of some members of the above classes to get around the problem mentioned here: https://github.com/mobxjs/mobx/pull/3880#discussion_r1623823258. If these are part of a documented, stable public API then we will need to find another solution.
Soaking Time
We discussed here https://github.com/mobxjs/mobx/pull/3880#issuecomment-2138116645 that we should let the previous changes to
ComputedValue
soak for a bit to flush out any issues. We have been shipping those changes for a few weeks in production now and haven't seen any problems yet.Code change checklist
/docs
. For new functionality, at leastAPI.md
should be updatedyarn mobx test:performance
)