Similar to observe, creates a reactive scope that re-executes the function
when its proxied dependencies change.
Difference: Updates run synchronously and immediately after the proxy modification
that triggered the update occurs.
Caution: Use sparingly. Immediate execution bypasses Aberdeen's usual batching and
ordering optimizations, which can lead to performance issues or observing inconsistent
intermediate states if multiple related updates are applied sequentially.
Prefer observe or $ for most use cases.
Parameters
func: ()=>void
The function to execute reactively and synchronously.
Similar to observe, creates a reactive scope that re-executes the function when its proxied dependencies change.
Difference: Updates run synchronously and immediately after the proxy modification that triggered the update occurs.
Caution: Use sparingly. Immediate execution bypasses Aberdeen's usual batching and ordering optimizations, which can lead to performance issues or observing inconsistent intermediate states if multiple related updates are applied sequentially. Prefer observe or $ for most use cases.