fix: component nil pointer on sync; improve realtimechart example

This commit is contained in:
Joao Goncalves
2025-11-15 03:01:53 -01:00
parent 80879216b2
commit 03019364ca
2 changed files with 6 additions and 5 deletions

View File

@@ -193,7 +193,7 @@ func (c *Context) getPatchChan() chan patch {
// components use parent page sse stream
var patchChan chan patch
if c.isComponent() {
patchChan = c.parentPageCtx.parentPageCtx.patchChan
patchChan = c.parentPageCtx.patchChan
} else {
patchChan = c.patchChan
}