Skip to content

Can I know when all reactions for the current transaction have run? #3508

Answered by urugator
rickmed asked this question in Q&A
Discussion options

You must be logged in to vote

https://mobx.js.org/configuration.html#reactionscheduler-f---void--void

configure({
    reactionScheduler: (runReactions): void => {
        console.log("before");
        runReactions();
        console.log("after");
    }
})

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rickmed
Comment options

@urugator
Comment options

Answer selected by rickmed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants