poll Action

Use poll to update the page based on page data or backend data.

To execute the action, the frontend re-fetches the page from the server and then smoothly updates the displayed page to match the new version it received.

It shows the "Working" modal.

If the page has any variables, the frontend uses an HTTP POST and includes the variables and their values in a JSON object request body.

Examples

# Ruby
poll
#![allow(unused)]
fn main() {
// Rust
poll()
}