Sync Broadcast
Installation
{
"controllers": {
"@spomky-labs/pwa-bundle": {
"backgroundsync-queue": {
"enabled": true
}
}
}
}Usage
<div {{ stimulus_controller('pwa/backgroundsync-queue', {
channel: 'form-sync'
}) }}
{{ stimulus_action('pwa/backgroundsync-queue', 'replay', 'click') }}
>
<span {{ stimulus_target('pwa/backgroundsync-queue', 'output') }}>
Checking sync status...
</span>
<button type="button">Retry pending items</button>
</div>Parameters
Parameter
Type
Required
Description
Actions
Action
Description
Targets
Target
Description
Events
Event
Detail
Description
How It Works
Example: Showing Pending Request Count
Related Configuration
Last updated
Was this helpful?