MCPcopy Create free account
hub / github.com/TanStack/router / fallback

Function fallback

packages/solid-start-client/src/GenericHydrate.tsx:334–347  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

332 ...markerAttributes,
333 }
334 const fallback = () => {
335 if (!shouldPreserveServerHTML) return props.fallback ?? null
336
337 const html = getFallbackHtml(id)
338 if (!html) return null
339
340 const fallbackProps: HydrationFallbackDynamicProps = {
341 component: 'div',
342 style: { display: 'contents' },
343 innerHTML: html,
344 }
345
346 return <Dynamic {...fallbackProps} />
347 }
348
349 return (
350 <Dynamic {...markerProps}>

Callers 2

GenericHydrateFunction · 0.70
createComposedHandlerFunction · 0.50

Calls 1

getFallbackHtmlFunction · 0.90

Tested by

no test coverage detected