bn.callSync
▸ callSync<Payload
, Response
>(actionName
, payload?
): Response
description
Call an custom action synchronous. If the plugin of custom action not ready, it will throw an error.
example
try {
const response = bn.callSync("private-BIDS-social-login",{})
} catch(e) {
console.error(e)
}
Type parameters
Name | Type |
---|---|
Payload | extends Data |
Response | extends void | Data |
Parameters
Name | Type |
---|---|
actionName | string |
payload? | Payload |
Returns
Response
Data
Ƭ Data: Object