Skip to content

Conversation

@Tanmay-008
Copy link
Contributor

Summary

This PR begins the migration of Motia UI from manual memoization (memo, useMemo, useCallback) to React Compiler.

React Compiler is enabled for the UI layer as the first step of the migration, establishing a stable foundation before rolling it out across the rest of the codebase.

Related Issues

Closes #940

Changes Included

  • Added babel-plugin-react-compiler as a dev dependency
  • Enabled the compiler via Vite config in packages/ui/vite.config.ts
react({
  babel: {
    plugins: ['babel-plugin-react-compiler'], 
  },
}); 

⚠️ Note

Phase 1 only activates the React Compiler. Further phases (if required) will focus on cleanup and performance validation.

@vercel
Copy link

vercel bot commented Nov 23, 2025

Someone is attempting to deploy a commit to the motia Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate Motia UI from Manual Memoization to React Compiler

1 participant