source: node_modules/recharts/lib/state/RechartsReduxContext.js

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

Added visualizations

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