Skip to content

Commit c042cff

Browse files
committed
chore: Fix more compilation and linting issues
1 parent 26e1407 commit c042cff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/resources/resource.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ export function ReactiveResource<V, KE extends readonly (keyof SessionEvents)[]>
2929

3030
constructor(
3131
protected readonly server: Server,
32-
protected readonly telemetry: Telemetry
32+
protected readonly telemetry: Telemetry,
33+
current?: V
3334
) {
34-
this.current = initial;
35+
this.current = current ?? initial;
3536
this.session = server.session;
3637
this.config = server.userConfig;
3738

0 commit comments

Comments
 (0)