mirror of
https://github.com/hanzo-io/team.git
synced 2026-10-30 18:56:23 +00:00
12 lines
351 B
JavaScript
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) |