Skip to content

Commit c6ca77b

Browse files
committed
Initial implementation
1 parent 2b431fd commit c6ca77b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/LiveResponse.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ export class LiveResponse extends EventTarget {
5757
}
5858

5959
static from(data, ...args) {
60+
if (this.test(data) === 'LiveResponse') {
61+
return data.clone(...args);
62+
}
6063
return new this(data, ...args);
6164
}
6265

0 commit comments

Comments
 (0)