Skip to content

FCE-3578: data-channel state moves into ClientState - #597

Open
MiloszFilimowski wants to merge 1 commit into
tsunami/10-peer-views-sandboxfrom
tsunami/11-data-channel-state
Open

FCE-3578: data-channel state moves into ClientState#597
MiloszFilimowski wants to merge 1 commit into
tsunami/10-peer-views-sandboxfrom
tsunami/11-data-channel-state

Conversation

@MiloszFilimowski

@MiloszFilimowski MiloszFilimowski commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Stacked on #596.

Description

  • ClientState gains the dataChannel slice (idle / creating / ready + error).
  • createDataChannels becomes state-aware: rejects with DataChannelsNotConnectedError when signalling is not connected, mirrors publish errors into the slice.
  • react-client's useDataChannel becomes a thin store adapter.

Motivation and Context

Data-channel state is part of the ClientState shape from RFC 0015 §2 (FCE-3578 scope); moving it into the store removes the last hand-tracked state in useDataChannel.

Documentation impact

  • Documentation update required
  • Documentation updated in another PR
  • No documentation update required

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to
    not work as expected)

createDataChannels becomes state-aware: idle/creating/ready in the
dataChannel slice, DataChannelsNotConnectedError when signalling is not
connected, publish errors mirrored into the slice. react-client's
useDataChannel becomes a thin store adapter.
@MiloszFilimowski MiloszFilimowski changed the title tsunami: data-channel state moves into ClientState FCE-3578: data-channel state moves into ClientState Aug 11, 2026
@linear

linear Bot commented Aug 11, 2026

Copy link
Copy Markdown

FCE-3578

@MiloszFilimowski
MiloszFilimowski marked this pull request as ready for review August 11, 2026 09:35
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.

1 participant