MCPcopy Index your code
hub / github.com/TanStack/router / enqueue

Method enqueue

packages/router-core/src/ssr/ssr-server.ts:81–92  ·  view source on GitHub ↗
(script: string)

Source from the content-addressed store, hash-verified

79 }
80
81 enqueue(script: string) {
82 if (this._cleanedUp) return
83 this._queue.push(script)
84 // If barrier is lifted, schedule injection (if not already scheduled)
85 if (this._scriptBarrierLifted && !this._pendingMicrotask) {
86 this._pendingMicrotask = true
87 queueMicrotask(() => {
88 this._pendingMicrotask = false
89 this.injectBufferedScripts()
90 })
91 }
92 }
93
94 liftBarrier() {
95 if (this._scriptBarrierLifted || this._cleanedUp) return

Callers 15

safeEnqueueFunction · 0.80
nextFunction · 0.80
startFunction · 0.80
pumpFunction · 0.80
createPushableStreamFunction · 0.80
startFunction · 0.80
safeEnqueueFunction · 0.80
startFunction · 0.80
createFrameDecoderFunction · 0.80

Calls 1

injectBufferedScriptsMethod · 0.95

Tested by 3

startFunction · 0.64
startFunction · 0.64
startFunction · 0.64