(context, transform)
| 3 | import { resolveContext } from './context' |
| 4 | |
| 5 | export default function transformContext(context, transform) { |
| 6 | return Wrapped => { |
| 7 | return subscribe(context, transform)( |
| 8 | class TransformContext extends React.PureComponent { |
| 9 | render() { |
| 10 | return ( |
| 11 | <Wrapped |
| 12 | {...this.props} |
| 13 | context={resolveContext(context, this.props)} |
| 14 | /> |
| 15 | ) |
| 16 | } |
| 17 | } |
| 18 | ) |
| 19 | } |
| 20 | } |
no test coverage detected