MCPcopy
hub / github.com/vuejs/core / isRenderableAttrValue

Function isRenderableAttrValue

packages/shared/src/domAttrConfig.ts:148–154  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

146 * Shared between server-renderer and runtime-core hydration logic
147 */
148export function isRenderableAttrValue(value: unknown): boolean {
149 if (value == null) {
150 return false
151 }
152 const type = typeof value
153 return type === 'string' || type === 'number' || type === 'boolean'
154}

Callers 3

ssrRenderDynamicAttrFunction · 0.90
ssrRenderAttrFunction · 0.90
propHasMismatchFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected