reports/frontend/node_modules/recharts/es6/state/RechartsReduxContext.js
jtricerolph 1c411e402e Add settings page for managing forecasting API key and URL via UI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-20 14:37:36 +00:00

17 lines
No EOL
751 B
JavaScript

import { createContext } from 'react';
/*
* This is a copy of the React-Redux context type, but with our own store type.
* We could import directly from react-redux like this:
* import { ReactReduxContextValue } from 'react-redux/src/components/Context';
* but that makes typescript angry with some errors I am not sure how to resolve
* so copy it is.
*/
/**
* We need to use our own independent Redux context because we need to avoid interfering with other people's Redux stores
* in case they decide to install and use Recharts in another Redux app which is likely to happen.
*
* https://react-redux.js.org/using-react-redux/accessing-store#providing-custom-context
*/
export var RechartsReduxContext = /*#__PURE__*/createContext(null);