BackgroundSync Form
pwa:
serviceworker:
enabled: true
workbox:
enabled: true
background_sync:
- queue_name: 'form'
match_callback: 'startsWith: /form'
method: POST
max_retention_time: 7_200 # 5 days in minutes
force_sync_fallback: true #Optional<form {{ stimulus_controller('@pwa/backgroundsync-form') }} method="post">
...
<button {{ stimulus_action('@pwa/backgroundsync-form', 'send')}} type="submit">
Send!
</button>
</form>Parameters
Actions
Targets
Events
Last updated
Was this helpful?