Skip to content

fix(mobile): Make usePoseStream read-only#382

Open
Gujiassh wants to merge 1 commit intoruvnet:mainfrom
Gujiassh:refresh/use-pose-stream-passive-20260411
Open

fix(mobile): Make usePoseStream read-only#382
Gujiassh wants to merge 1 commit intoruvnet:mainfrom
Gujiassh:refresh/use-pose-stream-passive-20260411

Conversation

@Gujiassh
Copy link
Copy Markdown

Summary

  • rebase the previous read-only hook change onto current main
  • remove side effects from usePoseStream so it only reads store state
  • keep socket subscribe/connect ownership outside the hook and add regression tests

Testing

  • npm --prefix ui/mobile test -- --runInBand src/__tests__/hooks/usePoseStream.test.ts

Context

Replacement for closed PR #274 with still-real diff on current main.

Keep WebSocket ownership in App-level wiring so screens stop subscribing and reconnecting again every time  mounts.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
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