rebuild parser on refresh

This commit is contained in:
bel
2023-03-24 22:15:36 -06:00
parent a9ca58f154
commit 610aef4f7e
2 changed files with 5 additions and 4 deletions

View File

@@ -14,6 +14,7 @@ type Input interface {
func New(ctx context.Context) Input {
src := raw.New(ctx)
parser := button.New(ctx, src)
return wrap.New(ctx, parser)
return wrap.New(ctx, func() button.Parser {
return button.New(ctx, src)
})
}