Skip to content

Conversation

@davidliu
Copy link
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

components-android@2.0.0

Major Changes

  • Compose depends on the timing of reads of State objects to determine whether it is a dependency for certain - #50 (@davidliu)
    use cases, such as when using derivedStateOf or snapshotFlow. When we pass back state values, these timings
    can be disassociated from their usage, causing Compose to not register the states appropriately and not update
    when the state value changed.

    To address this, we've changed the return values of simple functions like rememberConnectionState to return
    State objects instead of the values directly. This means that their reads will be more closely aligned with
    their usages and prevent issues with Compose not updating appropriately.

    To migrate, switch to using the by delegate syntax when declaring an object to hold the state:

    val connectionState by rememberConnectionState()
    

    In places where we return data objects to hold multiple values (such as rememberRoomInfo), we've kept the API
    to return values, as these have been converted to be delegates to the state objects backing them.

Minor Changes

Patch Changes

  • Fix RememberParticipantTrackReferences returning a new flow every recomposition - #50 (@davidliu)

  • rememberLiveKitRoom: Only disconnect Room if it has connected before to manage the connection - #50 (@davidliu)

  • rememberLiveKitRoom: Don't require local context if room is passed - #50 (@davidliu)

@davidliu davidliu merged commit df618f2 into main Nov 18, 2025
4 checks passed
@davidliu davidliu deleted the changeset-release/main branch November 18, 2025 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants