Hooks - Template
Description of the hooks contained in the module
Indicate the path of the hooks used in the module on a code block.
Example:
Name of hook
Describe the hook's functionality
If the hook returns an array describe it on a table like shown below
Example: useSendVerificationCode (hook used on MFA module)
Return Array
sendCodeToPhone
Function
Method which receives a countryCode, phoneNumber, eventName.
It sends a verification code to the phone provided.
Endpoint: sendCodeToPhone
clearSendVerficationCode
Function
Set the sendSuccessCode
to the initial state.
sendCodeIsLoading
boolean state
Indicates if the request of sending the code is pending.
sendCodeSuccess
boolean state
Indicates if the request of sending the code was successful.
Remember that the reference to files must be in code format and not in color.
Example:
Wrong
In your LinkerStudio/modules/aggregators/constants/configAggregators file you will see the following code block:
Correct
In your LinkerStudio/modules/aggregators/constants/configAggregators
file you will see the following code block:
Last updated
Was this helpful?