Skip to content

Commit

Permalink
Update packages/labs/context/src/lib/context-root.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Schaaf <kschaaf@google.com>
  • Loading branch information
justinfagnani and kevinpschaaf committed Feb 2, 2023
1 parent 3322a00 commit e7abc22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/labs/context/src/lib/context-root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export class ContextRoot {
private pendingContextRequests = new Map<
Context<unknown, unknown>,
{
// The WeakMap lets us detect if we're seen an element/callback pair yet
// The WeakMap lets us detect if we're seen an element/callback pair yet,
// without needing to iterate the `requests` array
callbacks: WeakMap<HTMLElement, WeakSet<ContextCallback<unknown>>>;

// Requests lets us iterate over every element/callback that we need to
Expand Down

0 comments on commit e7abc22

Please sign in to comment.