Fix dict kwarg evaluation in renderComponentDOM, no-cache static in dev

Dict values (e.g. {:X-CSRFToken csrf}) passed as component kwargs were
not being evaluated through sxEval — symbols stayed unresolved in the DOM.
Also add Cache-Control: no-cache headers for /static/ in dev mode so
browser always fetches fresh JS/CSS without needing hard refresh.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-05 09:37:07 +00:00
parent 64aa417d63
commit 8c69e329e0
2 changed files with 10 additions and 2 deletions

View File

@@ -1286,8 +1286,8 @@
kwargs[args[i].name] = sxEval(v, env);
}
} else {
// Data arrays, dicts, etc — pass through as-is
kwargs[args[i].name] = v;
// Data arrays, dicts, etc — evaluate in caller's env
kwargs[args[i].name] = sxEval(v, env);
}
i += 2;
} else {