MCPcopy
hub / github.com/reduxjs/redux / loadData

Function loadData

examples/real-world/src/containers/UserPage.js:13–16  ·  view source on GitHub ↗
({ login, loadUser, loadStarred })

Source from the content-addressed store, hash-verified

11import zip from 'lodash/zip'
12
13const loadData = ({ login, loadUser, loadStarred }) => {
14 loadUser(login, [ 'name' ])
15 loadStarred(login)
16}
17
18class UserPage extends Component {
19 static propTypes = {

Callers 2

componentDidMountMethod · 0.70
componentDidUpdateMethod · 0.70

Calls 2

loadUserFunction · 0.90
loadStarredFunction · 0.90

Tested by

no test coverage detected