Skip to content

Conversation

@jdimovska
Copy link
Contributor

💡 Overview

This PR introduces a new @stream-io/codemod package containing codemods to assist with migrating Stream Video SDK integrations across versions.
The initial codemod use-call-state-hooks, updates useCallStateHooks() usage to be compatible with the React Compiler.

What the codemod does:

  • Renames useCallStateHooks to getCallStateHooks
  • Hoists the call to module scope

📝 Implementation notes

🎫 Ticket: https://linear.app/stream/issue/REACT-675/enable-react-compiler

📑 Docs: https://github.com/GetStream/docs-content/pull/869

@jdimovska jdimovska requested a review from oliverlaz December 22, 2025 21:22
@jdimovska jdimovska changed the title chore(react): add codemod to make useCallStateHooks React Compiler co… chore(react): add codemod to make useCallStateHooks React Compiler compatible Dec 22, 2025
…mpatible

- rename to @stream-io/video-codemod
- add @stream-io/video-react-native-sdk
…mpatible

- remove jscodeshift from devDependencies
@jdimovska jdimovska merged commit 9a60fd2 into main Dec 24, 2025
14 of 15 checks passed
@jdimovska jdimovska deleted the react-compiler-codemod branch December 24, 2025 14: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.

3 participants