Replies: 2 comments 1 reply
-
If you're only interested about when the "transaction" ends, I think you could use |
Beta Was this translation helpful? Give feedback.
1 reply
-
Correct, in mobx-react we hook up react batches to mobx batches for similar
reasons:
https://github.com/mobxjs/mobx/blob/main/packages/mobx-react-lite/src/index.ts#L9
…On Fri, Sep 10, 2021 at 10:35 AM urugator ***@***.***> wrote:
If you're only interested about when the "transaction" ends, I think you
could use reactionScheduler
<https://mobx.js.org/configuration.html#reactionscheduler-f---void--void>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3106 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAN4NBCLANIREKODXNEH6BDUBHGMPANCNFSM5DXIFNDA>
.
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>.
|
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
-
I am using Mobx alongside other libraries such as https://github.com/yjs/yjs, these tools also want to be aware of transactions / batching.
I could expose a single function that people can use which combines transactions from both tools however there are so many entry points to transactions in mobx (
action
,runInAction
,action.bound
...) it would be simpler if I could just hook into the base transaction somehow and tell the other library a transaction is occurring and then I am free to use the mobx API as intended.Beta Was this translation helpful? Give feedback.
All reactions