Skip to content

Conversation

@yuechao-qin
Copy link
Collaborator

@yuechao-qin yuechao-qin commented Jan 16, 2026

Description

Enabled React Compiler for useComponentCanvasTasks.ts hook by adding it to the REACT_COMPILER_ENABLED_DIRS list in the config file. Also removed the unnecessary useMemo wrapper in the hook implementation, as the React Compiler will handle memoization automatically.

Type of Change

  • Improvement
  • Performance optimization

Tests

  • Confirm Chrome React Extension shows Memo next to ComponentUsageCount.
    • Confirmed that Anonymous is the correct component and it has Memo next to it because I compared before/after changes.
    • image.png
  • Ran npm run validate:test and passed.

Copy link
Collaborator Author

yuechao-qin commented Jan 16, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

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