Skip to content

Instantly share code, notes, and snippets.

@smich
smich / td-connected-example.jsx
Created November 1, 2017 17:17
TalentDesk.io ApiConnected HOC - proposal
/**
* TDApiConnected component
*
* Make sure it fetches data when the view chagnes. The component makes sure the data
* in redux store belong to the active view, otherwise it fetches data and updates
* redux store
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';

Keybase proof

I hereby claim:

  • I am smich on github.
  • I am smich (https://keybase.io/smich) on keybase.
  • I have a public key ASDEexI2OFh0-sas2PTRO9nFx7zShpyGdVuYTdYgOPftzQo

To claim this, I am signing this object: