MCPcopy Create free account
hub / github.com/Lobos/react-ui / constructor

Method constructor

src/higherOrders/Fetch.js:26–35  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

24export const fetchEnhance = (ComposedComponent) => {
25 class Fetch extends Component {
26 constructor (props) {
27 super(props);
28
29 this.state = {
30 data: undefined,
31 fetchStatus: FETCH_SUCCESS
32 }
33
34 this.getSelected = this.getSelected.bind(this)
35 }
36
37 componentWillMount () {
38 this._isMounted = true;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected