Use an action when a Blade element or JSON:API response needs data from a database or service at render time. An action is an invokable PHP class selected by the element's trusted schema.
Server-rendered action data keeps the first response complete, but it also participates in the page's caching behavior. Keep actions deterministic for public cacheable pages and select only the data the template needs.