Closed lukepighetti closed 7 months ago
Common pattern in state management to depend on a reactive value and use it to manage/switch streams
ie:
final userProfileSignal = derivedStreamSignal<UserProfile>((){ final uid = myUidSignal(); return myUserProfileStream(uid); });
and then have it automatically handle setup and teardown of the profile stream as the user id changes
Is does state_beacon have this feature, and if not, please consider this a feature request
That's an interesting concept, I think the current derived beacon could be modified to treat streams differently..
Added in v0.33.2
Common pattern in state management to depend on a reactive value and use it to manage/switch streams
ie:
and then have it automatically handle setup and teardown of the profile stream as the user id changes
Is does state_beacon have this feature, and if not, please consider this a feature request