awx/src/contexts/Config.jsx
Jake McDermott e72f0bcfd4
update content loading and error handling
unwind error handling

use auth cookie as source of truth, fetch config only when authenticated
2019-06-14 13:00:37 -04:00

8 lines
240 B
JavaScript

import React from 'react';
// eslint-disable-next-line import/prefer-default-export
export const ConfigContext = React.createContext({});
export const ConfigProvider = ConfigContext.Provider;
export const Config = ConfigContext.Consumer;