Update indicator is useful if some component reads from async selectors.
Let's consider such case
We have simple store that holds information about active user id.
Now, we can have selector that will fetch active user info when needed:
And now, we have some component that renders active user info:
On first render (mount) - our component will suspend.
However, next time
activeUserId will change, our component will not know about it until
activeUserInfo will update itself with new value.
We can modify this behaviour with such code:
This way, every time some used selector will be updating in the background, our component will display proper information about it.
View.UpdateIndicator can only be rendered directly inside corresponding view.
Such code is incorrect and will throw: