-
Notifications
You must be signed in to change notification settings - Fork 26.3k
feat(core): export signalGetFn from signal primitives #60497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
reviewed-for: primitives, public-api
@mturco it looks like the FYI, Angular is using https://github.com/angular/angular/blob/main/packages/core/primitives/signals/src/signal.ts#L57-L60 which seems to have the same logic as Would love to know more about the intention / other possibilities here. |
@pkozlowski-opensource the use case here is related to go/wiz:devtools-reactive-nodes. We're using the recently added We could pass |
3f8b79b
to
a6c10df
Compare
@pkozlowski-opensource this has been updated as discussed to have |
This updates `createSignal` to use `signalGetFn` to define the signal getter and exports `signalGetFn` from the shared signal primitives.
a6c10df
to
d21005e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Reviewed-for: public-api
Reviewed-for: primitives
TESTED=see above presubmit (TGP not necessary for new code) |
caretaker note: failure is unrelated. This is ready to merge. |
This PR was merged into the repository by commit a4bad8d. The changes were merged into the following branches: main |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This exports
signalGetFn
from the shared signal primitives which follows suit fromsignalSetFn
andsignalUpdateFn
(both are already exported).