fix: missing allocator attr

This commit is contained in:
Nurul Huda (Apon) 2026-06-13 01:24:54 +06:00
parent ca15077bb7
commit 0081f17c94
No known key found for this signature in database
GPG Key ID: 5D3F1DE2855A2F79
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ pub fn Page(ctx: zx.PageContext) zx.Component {
pub fn EventForm(ctx: *zx.ComponentContext) zx.Component {
const count = ctx.state(i32, 1);
return (
<button onclick={ctx.bind(onclick)}>
<button @allocator={ctx.allocator} onclick={ctx.bind(onclick)}>
Click Me {count}
</button>
);

View File

@ -9,7 +9,7 @@ pub fn Page(ctx: zx.PageContext) zx.Component {
pub fn EventForm(ctx: *zx.ComponentContext) zx.Component {
const count = ctx.state(i32, 1);
return (
<button onclick={ctx.bind(onclick)}>
<button @allocator={ctx.allocator} onclick={ctx.bind(onclick)}>
Click Me {count}
</button>
);