Documentation Index
Fetch the complete documentation index at: https://inertiajs.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Poll Helper
Polling your server for new information on the current page is common, so Inertia provides a poll helper designed to help reduce the amount of boilerplate code. In addition, the poll helper will automatically stop polling when the page is unmounted. The only required argument is the polling interval in milliseconds.router.reload options as the second parameter.
stop and start methods that allow you to manually start and stop polling. You can pass the autoStart: false option to the poll helper to prevent it from automatically starting polling when the component is mounted.
Concurrency Mode
By default, the poll helper fires a new request on every tick, even when the previous request is still in flight. You may control this behavior with themode option, which accepts one of three values: overlap, cancel, or rest.
The default overlap mode allows requests to run in parallel. The cancel mode aborts any in-flight request when the next tick fires. The rest mode treats the interval as the time between the end of the previous request and the start of the next one, so requests never overlap.
Throttling
By default, the poll helper will throttle requests by 90% when the browser tab is in the background. If you’d like to disable this behavior, you can pass thekeepAlive option to the poll helper.