Skip to content

useReferralInteraction

useReferralInteraction(args?): Error | "idle" | "processing" | "success" | "no-referrer" | "self-referral"

Defined in: react/src/hook/helper/useReferralInteraction.ts:26

Helper hook to automatically submit a referral interaction when detected

Runs once when the Frak client becomes available.

ProcessReferralOptions

Some options for the referral interaction

Error | "idle" | "processing" | "success" | "no-referrer" | "self-referral"

The resulting referral state, or a potential error

This function will automatically handle the referral interaction process

`referralInteraction()` for more details on the automatic referral handling process