param.reactive.reactive_ops.updating#
- reactive_ops.updating() rx[source]#
Return a new expression that indicates whether the current expression is updating.
This method creates a reactive expression that evaluates to
Truewhile the current expression is in the process of updating andFalseotherwise. This can be useful for tracking or reacting to the update state of an expression, such as displaying loading indicators or triggering conditional logic.- Returns:
A reactive expression that is
Truewhile the current expression is updating andFalseotherwise.- Return type:
ReactiveExpression
Examples
Create a reactive expression and track its update state:
>>> import param >>> rx_value = param.rx(1)
Create an updating tracker:
>>> updating = rx_value.rx.updating() >>> updating.rx.value False
Simulate an update and observe the change in the updating tracker:
>>> rx_value.rx.value = 2 >>> updating.rx.value # Becomes True during the update process, then False. False