-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
Signal queries - runtime bits #54017
Signal queries - runtime bits #54017
Conversation
5e2e316
to
a99ec1e
Compare
})(); | ||
|
||
export function bindQueryToSignal(target: Signal<unknown>, queryIndex: number): void { | ||
const node = target[SIGNAL] as QuerySignalNode<unknown>; |
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.
Nit: Also may want to assert here.
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.
Yep, will do in the follow-up!
a99ec1e
to
187690d
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 (just follow-up tasks)
function createQuerySignalFn<V>(firstOnly: true, required: true): Signal<V>; | ||
function createQuerySignalFn<V>(firstOnly: true, required: false): Signal<V|undefined>; | ||
function createQuerySignalFn<V>(firstOnly: false, required: false): Signal<ReadonlyArray<V>>; | ||
function createQuerySignalFn<V>(firstOnly: boolean, required: boolean) { |
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.
(For follow-up) nit: Would be good to include JSDocs here as well
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.
Agreed, let's do in the follow-up
90efad9
to
d2b752c
Compare
d2b752c
to
42ce16a
Compare
42ce16a
to
dc125bc
Compare
This is a refactor commit that moves more query construction / refresh logic from the body of instructions into dedicated functions. This is in preparation for the signal-based query instructions.
This refactoring expands the QueryList such that we can add onDirty callback to be invoked when a given query gets marked as dirty during view insertion / removal. This mechanism is needed for signal-based queries.
This commit adds new instructions to support view queries as signals.
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.
reviewed-for: public-api
dc125bc
to
b2bac2a
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.
Reviewed-for: public-api
caretaker note: G3 build is green after de-flaking: https://fusion2.corp.google.com/presubmit/600466678/OCL:600466678:BASE:601135515:1706117416930:60e42d7d;groups=PossiblyNewlyFailing/targets |
This refactoring expands the QueryList such that we can add onDirty callback to be invoked when a given query gets marked as dirty during view insertion / removal. This mechanism is needed for signal-based queries. PR Close #54017
This PR was merged into the repository by commit c043128. |
…4017) This is a refactor commit that moves more query construction / refresh logic from the body of instructions into dedicated functions. This is in preparation for the signal-based query instructions. PR Close angular#54017
…54017) This refactoring expands the QueryList such that we can add onDirty callback to be invoked when a given query gets marked as dirty during view insertion / removal. This mechanism is needed for signal-based queries. PR Close angular#54017
…ngular#54017) This commit adds new instructions to support view queries as signals. PR Close angular#54017
…4017) This is a refactor commit that moves more query construction / refresh logic from the body of instructions into dedicated functions. This is in preparation for the signal-based query instructions. PR Close angular#54017
…54017) This refactoring expands the QueryList such that we can add onDirty callback to be invoked when a given query gets marked as dirty during view insertion / removal. This mechanism is needed for signal-based queries. PR Close angular#54017
…ngular#54017) This commit adds new instructions to support view queries as signals. PR Close angular#54017
…4017) This is a refactor commit that moves more query construction / refresh logic from the body of instructions into dedicated functions. This is in preparation for the signal-based query instructions. PR Close angular#54017
…54017) This refactoring expands the QueryList such that we can add onDirty callback to be invoked when a given query gets marked as dirty during view insertion / removal. This mechanism is needed for signal-based queries. PR Close angular#54017
…ngular#54017) This commit adds new instructions to support view queries as signals. PR Close angular#54017
…4017) This is a refactor commit that moves more query construction / refresh logic from the body of instructions into dedicated functions. This is in preparation for the signal-based query instructions. PR Close angular#54017
…54017) This refactoring expands the QueryList such that we can add onDirty callback to be invoked when a given query gets marked as dirty during view insertion / removal. This mechanism is needed for signal-based queries. PR Close angular#54017
…ngular#54017) This commit adds new instructions to support view queries as signals. PR Close angular#54017
…4017) This is a refactor commit that moves more query construction / refresh logic from the body of instructions into dedicated functions. This is in preparation for the signal-based query instructions. PR Close angular#54017
…54017) This refactoring expands the QueryList such that we can add onDirty callback to be invoked when a given query gets marked as dirty during view insertion / removal. This mechanism is needed for signal-based queries. PR Close angular#54017
…ngular#54017) This commit adds new instructions to support view queries as signals. PR Close angular#54017
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. |
No description provided.