making room for context to add to the props

This commit is contained in:
Alan Daniels 2025-11-02 15:55:01 +11:00
parent 5aede0d096
commit ce67365a49
7 changed files with 44 additions and 26 deletions

View file

@ -36,7 +36,7 @@ const SimpleEndpoint = struct {
pub fn get(e: *SimpleEndpoint, arena: Allocator, context: *Context, r: zap.Request) !void {
const thread_id = std.Thread.getCurrentId();
try Context.SendInertiaResponse(e, r, arena, e.component, .{
try Context.SendInertiaResponse(e, context, r, arena, e.component, .{
.thread_id = thread_id,
.counter = context.counter,
});