Skip to content

Commit

Permalink
Renames HydroActiveComponent field scheduler to defaultScheduler.
Browse files Browse the repository at this point in the history
This class now supports using multiple schedulers, so this is only the default one to use.
  • Loading branch information
dgp1130 committed Dec 1, 2024
1 parent d04a6d3 commit bdfbe4b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/hydroactive-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export abstract class HydroActiveComponent extends HTMLElement {
#hydrated = false;

protected _tracker = StabilityTracker.from();
protected _scheduler = UiScheduler.from();
protected _defaultScheduler = UiScheduler.from();

constructor() {
super();
Expand Down
2 changes: 1 addition & 1 deletion src/signal-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function defineSignalComponent<CompDef extends ComponentDefinition>(
const root = ReactiveRootImpl.from(
this._connectable,
this._tracker,
this._scheduler,
this._defaultScheduler,
);
const accessor = SignalComponentAccessor.fromSignalComponent(this, root);

Expand Down
2 changes: 1 addition & 1 deletion src/testing/noop-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class NoopComponent extends HydroActiveComponent {
this.root = ReactiveRootImpl.from(
this._connectable,
this._tracker,
this._scheduler,
this._defaultScheduler,
);
this.#accessor =
SignalComponentAccessor.fromSignalComponent(this, this.root);
Expand Down

0 comments on commit bdfbe4b

Please sign in to comment.