Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix infinity
  • Loading branch information
kevinpschaaf committed Aug 17, 2021
commit e19f78db0f0fc30c7c2b27fca53ba2d1e87292af
2 changes: 1 addition & 1 deletion packages/lit-html/src/directives/until.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const isPromise = (x: unknown) => {
return !isPrimitive(x) && typeof (x as {then?: unknown}).then === 'function';
};
// Effectively infinity, but a SMI.
const _infinity = 0x7fffffff;
const _infinity = 0x3fffffff;

export class UntilDirective extends AsyncDirective {
private __lastRenderedIndex: number = _infinity;
Expand Down