sentInvitations
A reactive hot flow of invitations sent by the user.
This property provides a continuously updated list of Invitation objects, representing the invitations the user has sent to other Rainbow users. Each Invitation contains details such as its ID, recipient, and status.
Behavior:
The
sentInvitations
StateFlow automatically reflects changes in real-time whenever new invitations are sent or existing invitations are updated (e.g., accepted, canceled).The flow starts once the user is authenticated and remains active until logout or application closure.
Usage:
This property can be observed within a coroutine scope to reactively handle updates to sent invitations.
Use it to keep your UI or other application components in sync with the latest state of sent invitations.
Return
A StateFlow emitting a list of Invitation objects, updated as the user sends new invitations or existing invitations are modified.