/trigger-event

A custom react hook that triggers an event based on an interval

Primary LanguageJavaScript

trigger-event

A custom react hook that triggers an event based on an interval

We want to set a variable true and false on a reoccuring bases so that we can trigger the execution of a useEffect which will perform the fetchData async function.