title: How can i push data into react-admin store?
body: <p>I'm trying to build a web app with react-admin and need to push data to the redux store. I read the React-admin docs (<a href="https://marmelab.com/react-admin/Actions.html" rel="nofollow noreferrer">https://marmelab.com/react-admin/Actions.html</a>) and when I try to do that, I get Failures.<a href="https://i.stack.imgur.com/Ge7DK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ge7DK.png" alt="enter image description here" /></a></p>
  <p>Here is my code</p>
  <pre><code>import React, { Component } from 'react';
  import PropTypes from 'prop-types';
  import { connect } from 'react-redux';
  import { withStyles, MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles';
  import {
      Menu,
      Notification,
      Sidebar,
          setSidebarVisibility, 
  } from 'react-admin';
  
  import {kidsLoad} from './customActions/KidsActions'
  
  import AppBar from './MyAppBar';
  const styles = theme =&gt; ({
      root: {
          display: 'flex',
          flexDirection: 'column',
          zIndex: 1,
          minHeight: '100vh',
          backgroundColor: theme.palette.background.default,
          position: 'relative',
      },
      appFrame: {
          display: 'flex',
          flexDirection: 'column',
          overflowX: 'auto',
      },
      contentWithSidebar: {
          display: 'flex',
          flexGrow: 1,
      },
      content: {
          display: 'flex',
          flexDirection: 'column',
          flexGrow: 2,
          padding: theme.spacing.unit * 3,
          marginTop: '1em',
          paddingLeft: 5,
      },
  });
  
  class MyLayout extends Component {
      componentWillMount() {
          this.props.setSidebarVisibility(true);
          }
  
          componentDidMount(){
              const { kidsLoad, record } = this.props;
  
              kidsLoad({data: &quot;HELLOOOOOOOOOOOO!!!!!&quot;})
  
          }
  
      render() {
          const {
              children,
              classes,
              dashboard,
              isLoading,
              logout,
              open,
              title,
          } = this.props;
          return (
              &lt;div className={classes.root}&gt;
                  &lt;div className={classes.appFrame}&gt;
                      &lt;AppBar title={title} open={open} logout={logout} /&gt;
                      &lt;main className={classes.contentWithSidebar}&gt;
  
                          &lt;div className={classes.content}&gt;
                              {children}
                          &lt;/div&gt;
                      &lt;/main&gt;
                      &lt;Notification /&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          );
      }
  }
  
  MyLayout.propTypes = {
      children: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),
      dashboard: PropTypes.oneOfType([
          PropTypes.func,
          PropTypes.string,
      ]),
      isLoading: PropTypes.bool.isRequired,
      // logout: componentPropType,
      setSidebarVisibility: PropTypes.func.isRequired,
          title: PropTypes.string.isRequired,
          kidsLoad: PropTypes.func,
  };
  
  const mapStateToProps = state =&gt; ({ isLoading: state.admin.loading &gt; 0 });
  export default connect(mapStateToProps, { setSidebarVisibility, kidsLoad })(withStyles(styles)(MyLayout));
  </code></pre>
  <p>I did everything like in the documentation (<a href="https://marmelab.com/react-admin/Actions.html" rel="nofollow noreferrer">https://marmelab.com/react-admin/Actions.html</a>).</p>
  <p>What did I do wrong?
  How do you add data to the store in this framework?</p>