source: node_modules/recharts/es6/state/RechartsReduxContext.js@ a762898

Last change on this file since a762898 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 751 bytes
Line 
1import { createContext } from 'react';
2
3/*
4 * This is a copy of the React-Redux context type, but with our own store type.
5 * We could import directly from react-redux like this:
6 * import { ReactReduxContextValue } from 'react-redux/src/components/Context';
7 * but that makes typescript angry with some errors I am not sure how to resolve
8 * so copy it is.
9 */
10
11/**
12 * We need to use our own independent Redux context because we need to avoid interfering with other people's Redux stores
13 * in case they decide to install and use Recharts in another Redux app which is likely to happen.
14 *
15 * https://react-redux.js.org/using-react-redux/accessing-store#providing-custom-context
16 */
17export var RechartsReduxContext = /*#__PURE__*/createContext(null);
Note: See TracBrowser for help on using the repository browser.