usePoller
Import
Usage
Methods
initPoller(params) : void
Name | Type | Description |
---|---|---|
resolveCondition | Tuple[Function, string] OR string OR Function | Condition to satisfy before stop polling |
wiredMethod | string | Class property decorated by @wire containing Apex results to poll |
maxIteration | number | Number of polls to execute |
interval | number | Time between each poll |
Example
Tuple as the resolve condition
String as the resolve condition
Function as the resolve condition
Attributes
POLLER_PROGRESS : number
Example
Events
polling-end @ this
Name | Type | Description |
---|---|---|
status | OK , POLLING_LIMIT_EXCEEDED | How the poller has ended |
results | Record | Apex wired method results |