Skip to content

refactor(core): Refactor createSignal to return a tuple#61705

Closed
tsc036 wants to merge 1 commit intoangular:mainfrom
tsc036:update-create-signal
Closed

refactor(core): Refactor createSignal to return a tuple#61705
tsc036 wants to merge 1 commit intoangular:mainfrom
tsc036:update-create-signal

Conversation

@tsc036
Copy link
Copy Markdown
Contributor

@tsc036 tsc036 commented May 27, 2025

Refactor createSignal to return a tuple instead of a signal getter. createSignalTuple will be removed in a follow up pr once createSignalTuple usages in google3 are migrated to createSignal.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.dev application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

createSignal returns a signal getter.

Issue Number: N/A

What is the new behavior?

createSignal returns a tuple containing a getter, setter, and update function.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

…r, setter, and updater

Refactor createSignal to return a tuple instead of a signal getter. createSignalTuple will be removed in a follow up pr once createSignalTuple usages in google3 are migrated to createSignal.
@pullapprove pullapprove bot added the requires: TGP This PR requires a passing TGP before merging is allowed label May 27, 2025
@angular-robot angular-robot bot added the area: core Issues related to the framework runtime label May 27, 2025
@ngbot ngbot bot added this to the Backlog milestone May 27, 2025
Copy link
Copy Markdown
Contributor

@tbondwilkinson tbondwilkinson left a comment

Choose a reason for hiding this comment

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

But add the TGP run as well

Copy link
Copy Markdown
Member

@pkozlowski-opensource pkozlowski-opensource left a comment

Choose a reason for hiding this comment

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

LGTM

Reviewed-for: fw-general
Reviewed-for: primitives

@pullapprove pullapprove bot requested review from alxhub and kirjs May 28, 2025 10:42
Copy link
Copy Markdown
Contributor

@thePunderWoman thePunderWoman left a comment

Choose a reason for hiding this comment

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

reviewed-for: public-api

@tsc036
Copy link
Copy Markdown
Contributor Author

tsc036 commented May 28, 2025

Copy link
Copy Markdown
Member

@alxhub alxhub left a comment

Choose a reason for hiding this comment

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

Reviewed-for: fw-core, fw-primitives

@pullapprove pullapprove bot requested a review from mmalerba June 2, 2025 16:14
Copy link
Copy Markdown
Member

@alxhub alxhub left a comment

Choose a reason for hiding this comment

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

Reviewed-for: public-api

@pkozlowski-opensource pkozlowski-opensource added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Jun 4, 2025
@kirjs
Copy link
Copy Markdown
Contributor

kirjs commented Jun 4, 2025

This PR was merged into the repository by commit ed0a0a6.

The changes were merged into the following branches: main, 20.0.x

@kirjs kirjs closed this in ed0a0a6 Jun 4, 2025
kirjs pushed a commit that referenced this pull request Jun 4, 2025
…r, setter, and updater (#61705)

Refactor createSignal to return a tuple instead of a signal getter. createSignalTuple will be removed in a follow up pr once createSignalTuple usages in google3 are migrated to createSignal.

PR Close #61705
@tsc036 tsc036 deleted the update-create-signal branch June 4, 2025 17:02
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jul 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime requires: TGP This PR requires a passing TGP before merging is allowed target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants