fix: components not using parent page patchShan; fix: chat example nil pointer error when sync outside action

This commit is contained in:
Joao Goncalves
2025-11-15 02:34:11 -01:00
parent 042975fdd7
commit 80879216b2
4 changed files with 20 additions and 17 deletions

1
via.go
View File

@@ -153,6 +153,7 @@ func (v *V) Page(route string, initContextFn func(c *Context)) {
bottomBodyElements = append(bottomBodyElements, v.documentFootIncludes...)
if v.cfg.DevMode {
bottomBodyElements = append(bottomBodyElements, h.Script(h.Type("module"), h.Src("https://cdn.jsdelivr.net/gh/dataSPA/dataSPA-inspector@latest/dataspa-inspector.bundled.js")))
bottomBodyElements = append(bottomBodyElements, h.Raw("<dataspa-inspector/>"))
}
view := h.HTML5(h.HTML5Props{
Title: v.cfg.DocumentTitle,