Skip to content

fix: device name change doesn't update immediately - #645

Open
athospy wants to merge 2 commits into
commaai:masterfrom
athospy:fix/device-name-propagation
Open

fix: device name change doesn't update immediately#645
athospy wants to merge 2 commits into
commaai:masterfrom
athospy:fix/device-name-propagation

Conversation

@athospy

@athospy athospy commented Jun 25, 2026

Copy link
Copy Markdown

Fixes #641.

ACTION_UPDATE_DEVICE updated state.devices[] but not state.device, so
DeviceInfo/CommacareBadge (which read state.device) kept showing the old
name until a reload. Same fix ACTION_UPDATE_DEVICES already does, just for
the single-device case.

When a device name is changed, ACTION_UPDATE_DEVICE updates state.devices[]
but left state.device stale. Components reading state.device (DeviceInfo,
CommacareBadge) would not re-render until remount, making the name change
appear to have no effect.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Welcome to connect! Make sure to:

  • read the contributing guidelines
  • mark your PR as a draft until it's ready to review
  • post the preview on Discord; feedback from users will speedup the PR review

deployed preview: https://645.connect-d5y.pages.dev

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.

changing comma name doesn't propogate immediately

1 participant