Skip to content

Conversation

tjzel
Copy link
Collaborator

@tjzel tjzel commented Jul 25, 2025

Summary

To prevent circular dependencies in future refactors.

Test plan

CI

@tjzel tjzel requested a review from Copilot July 25, 2025 22:14
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR extracts runtime-related constants and data from RuntimeManager into a new RuntimeData file to prevent circular dependencies in future refactors.

  • Moves runtime ID constants (rnRuntimeId, uiRuntimeId) and the uiRuntimeName string from RuntimeManager to new RuntimeData files
  • Creates new RuntimeData.h and RuntimeData.cpp files to house the extracted data
  • Updates include statements in WorkletRuntime.h and RuntimeManager.h to reference the new RuntimeData header

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
RuntimeData.h New header file containing runtime ID constants and uiRuntimeName declaration
RuntimeData.cpp New implementation file with uiRuntimeName definition
RuntimeManager.h Removes runtime constants and adds RuntimeData include
RuntimeManager.cpp Removes uiRuntimeName definition
WorkletRuntime.h Adds RuntimeData include

@tjzel tjzel added this pull request to the merge queue Jul 29, 2025
Merged via the queue into main with commit 691df20 Jul 29, 2025
18 checks passed
@tjzel tjzel deleted the @tjzel/worklets/runtime-data branch July 29, 2025 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants