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.

@yuechao-qin yuechao-qin marked this pull request as ready for review January 16, 2026 19:19
@yuechao-qin yuechao-qin requested a review from a team as a code owner January 16, 2026 19:19
@yuechao-qin yuechao-qin force-pushed the ycq/manage-component-publish-comp branch from 6877309 to 8ea25c5 Compare January 22, 2026 19:54
@yuechao-qin yuechao-qin force-pushed the ycq/manage-component-usage-count branch from 58726d0 to d873fc9 Compare January 22, 2026 19:54
@yuechao-qin yuechao-qin force-pushed the ycq/manage-component-publish-comp branch from 8ea25c5 to aac9595 Compare January 22, 2026 20:15
@yuechao-qin yuechao-qin force-pushed the ycq/manage-component-usage-count branch from d873fc9 to 2b31182 Compare January 22, 2026 20:15
@yuechao-qin yuechao-qin force-pushed the ycq/manage-component-publish-comp branch 2 times, most recently from d86e51c to 7413315 Compare January 22, 2026 20:17
@yuechao-qin yuechao-qin force-pushed the ycq/manage-component-usage-count branch from 2b31182 to 0cd529d Compare January 22, 2026 20:17
@yuechao-qin yuechao-qin changed the base branch from ycq/manage-component-publish-comp to graphite-base/1654 January 22, 2026 20:21
@yuechao-qin yuechao-qin force-pushed the ycq/manage-component-usage-count branch from 0cd529d to b259329 Compare January 22, 2026 20:21
@graphite-app graphite-app bot changed the base branch from graphite-base/1654 to master January 22, 2026 20:22
@graphite-app
Copy link

graphite-app bot commented Jan 22, 2026

Merge activity

  • Jan 22, 8:22 PM UTC: Graphite rebased this pull request, because this pull request is set to merge when ready.
  • Jan 22, 10:27 PM UTC: @yuechao-qin merged this pull request with Graphite.

@yuechao-qin yuechao-qin force-pushed the ycq/manage-component-usage-count branch from b259329 to 64e2462 Compare January 22, 2026 22:25
@yuechao-qin yuechao-qin merged commit d76c393 into master Jan 22, 2026
8 checks passed
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