gabrielbull/react-router-server

View on GitHub
src/module/load.js

Summary

Maintainability
A
0 mins
Test Coverage
import { default as info } from './info';

export default (currentModule, load) => {
  const nextInfo = info(currentModule, load);
  return (load) => load.then(loadedModule => {
    const info = nextInfo();
    return { info, module: loadedModule };
  });
};