Files

12 lines
351 B
JavaScript

import * as React from "react";
const useStartFetch = () => {
return React.useContext(StartFetchContext)
}
export default useStartFetch;
/** Context to store whether the Raven chat module has been opened or not.
* This is so that we can fetch data only when the module is opened.
*/
export const StartFetchContext = React.createContext(false)