Skip to content

Refresh view after async response #35

@newPrimitives

Description

@newPrimitives

When I render a view and call some async API how do I update that view? I could not find any reload/refresh methods in the docs. For example:

app.get("/home") { request in
    HomeController().fetchData { posts in  
       // Update view with response 
    }
    return HomeController.index("/home")
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions