Skip to content

Commit

Permalink
fix(ctrl): default context and init
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie committed Apr 13, 2024
1 parent 80aed8d commit 1af7353
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ctrl.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ func (c *DefaultController) Hx() *Htmx {
func (c *DefaultController) Init(hx *Htmx) error {
c.hx = hx

ctx, err := NewDefaultContext(hx.Ctx())
if err != nil {
return err
}
c.ctx = ctx

return nil
}

Expand Down

0 comments on commit 1af7353

Please sign in to comment.