Skip to content

Commit

Permalink
Merge pull request #41 from stoikerty/feature/use-same-paths-for-prom…
Browse files Browse the repository at this point in the history
…ise-based-render

use the same options for the promise-based rendering
  • Loading branch information
stoikerty authored Apr 21, 2017
2 parents ea8d32d + 92577d9 commit 7ce4dd7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/dev-toolkit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dev-toolkit",
"version": "5.5.3",
"version": "5.5.4",
"description": "Development Toolkit for React Veterans",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -70,7 +70,7 @@
"cross-spawn": "^4.0.0",
"css-loader": "^0.23.1",
"css-modules-require-hook": "^4.0.1",
"dynamic-pages": "^0.2.1",
"dynamic-pages": "^0.3.0",
"eazy-logger": "^3.0.2",
"errorhandler": "^1.4.3",
"eslint": "^3.4.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/dynamic-pages/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dynamic-pages",
"version": "0.2.1",
"version": "0.3.0",
"description": "Dynamic page-loading utilities for react-router",
"main": "dist/dynamicPages.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion packages/dynamic-pages/src/dynamicPages/generateFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ export default new class GenerateFiles {
// asynchronous rendering, expects a promise
console.log(
chalk.blue('⤳'), ` onRouteRender ${chalk.magenta(renderPath)} with: ${names}`);
this.onRouteRender(renderPath, dynamicData).then(renderAndResolve);
this.onRouteRender({ renderPath, components, dynamicData, manifestData, indexData })
.then(renderAndResolve);
}
}
});
Expand Down

0 comments on commit 7ce4dd7

Please sign in to comment.