({getComponents, getStore, getSystem})
| 15 | } |
| 16 | |
| 17 | const viewPlugin = ({getComponents, getStore, getSystem}) => { |
| 18 | // getComponent should be passed into makeMappedContainer, _already_ memoized... otherwise we have a big performance hit ( think, really big ) |
| 19 | const memGetComponent = memoizeForGetComponent(getComponent(getSystem, getStore, getComponents)) |
| 20 | const memMakeMappedContainer = memoizeForWithMappedContainer(withMappedContainer(getSystem, getStore, memGetComponent)) |
| 21 | |
| 22 | return { |
| 23 | rootInjects: { |
| 24 | getComponent: memGetComponent, |
| 25 | makeMappedContainer: memMakeMappedContainer, |
| 26 | render: render(getSystem, getStore, getComponent, getComponents), |
| 27 | }, |
| 28 | fn: { |
| 29 | getDisplayName, |
| 30 | }, |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | export default viewPlugin |
nothing calls this directly
no test coverage detected
searching dependent graphs…