From 5206ac7188c9eefd6f1d18050e2831b0f10be8ef Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 27 Nov 2022 22:49:16 -0400 Subject: redesign & refinements for sticky layouting --- src/util/html.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/util/html.js') diff --git a/src/util/html.js b/src/util/html.js index 0a58622..6c429b9 100644 --- a/src/util/html.js +++ b/src/util/html.js @@ -72,6 +72,10 @@ export function tag(tagName, ...args) { } if (Array.isArray(content)) { + if (content.some(item => Array.isArray(item))) { + throw new Error(`Found array instead of string (tag) or null/falsey, did you forget to \`...\` spread an array or fragment?`); + } + const joiner = attrs?.[joinChildren]; content = content.filter(Boolean).join( (joiner -- cgit 1.3.0-6-gf8a5