git ssb

1+

dinoworm ๐Ÿ› / catstack



Tree: 06ba928e6dae6f3bb75720b2d3deee46ebb1dd18

Files: 06ba928e6dae6f3bb75720b2d3deee46ebb1dd18 / app / util / fetch-element.js

371 bytesRaw
1import React from 'react'
2
3export default function fetchElement (store) {
4 return function (Component, props) {
5 if (Component.fetchData) {
6 process.nextTick(function () {
7 Component.fetchData(
8 store.getState, store.dispatch,
9 props.location, props.params
10 )
11 })
12 }
13 return React.createElement(Component, props)
14 }
15}
16

Built with git-ssb-web