Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

tsrScript.ts

20 lines331 Bytes

1self.$_TSR = {
2 h() {
3 this.hydrated = true
4 this.c()
5 },
6 e() {
7 this.streamEnded = true
8 this.c()
9 },
10 c() {
11 if (this.hydrated && this.streamEnded) {
12 delete self.$_TSR
13 delete self.$R['tsr']
14 }
15 },
16 p(script) {
17 !this.initialized ? this.buffer.push(script) : script()
18 },
19 buffer: [],