When you want to manually manage a reaction's lifecycle in MobX, you would typically use the ________ utility.
- reaction
- @transaction
- @observable
- @computed
When you want to manually manage a reaction's lifecycle in MobX, you would typically use the reaction utility. The reaction function allows you to explicitly define when and how a reaction should run, giving you fine-grained control over reactivity. The other options (@transaction, @observable, @computed) are decorators or annotations in MobX and are not used for managing reaction lifecycles explicitly.
Loading...
Related Quiz
- What is React memo function?
- You have a widget in your application that sometimes fails due to a third-party library. You don't want this failure to crash the entire app. What would be the best approach?
- What is the main advantage of "CSS Modules" over regular CSS when working in large teams?
- How would you handle reconnecting to a Websocket server in a React application if the connection drops?
- When working with WebSockets in React, the ________ library provides a convenient way to establish and manage socket connections.