MCPcopy
hub / github.com/TanStack/router / takeBufferedScripts

Function takeBufferedScripts

packages/router-core/src/ssr/ssr-server.ts:337–349  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

335 scriptBuffer.liftBarrier()
336 },
337 takeBufferedScripts() {
338 const scripts = scriptBuffer.takeAll()
339 const serverBufferedScript: RouterManagedTag = {
340 tag: 'script',
341 attrs: {
342 nonce: router.options.ssr?.nonce,
343 className: '$tsr',
344 id: TSR_SCRIPT_BARRIER_ID,
345 },
346 children: scripts,
347 }
348 return serverBufferedScript
349 },
350 liftScriptBarrier() {
351 scriptBuffer.liftBarrier()
352 },

Callers

nothing calls this directly

Calls 1

takeAllMethod · 0.80

Tested by

no test coverage detected