React SDK
TriggerProvider
The TriggerProvider
component allows any hooks lower in the React hierarchy to connect to the Trigger.dev API.
These are the docs for Trigger.dev v2 which will be deprecated on January 31st, 2025. You probably want the v3 docs.
Ensure this component is above any Trigger.dev hooks in the React component tree.
Parameters
The public API key for your Trigger.dev account. You can find this on the Environments & API Keys page inside your Project.
You only need to set this if you’re self-hosting Trigger.dev. It defaults to https://api.trigger.dev.