Make document titles work

This commit is contained in:
Berkeley Martinez
2016-01-03 19:40:49 -08:00
parent 30826d9ecb
commit ea574d721e
3 changed files with 15 additions and 16 deletions

View File

@@ -54,6 +54,12 @@ export default function reactSubRouter(app) {
.flatMap(function({ props, AppCat }) {
const cat = AppCat(null, services);
debug('render react markup and pre-fetch data');
const store = cat.getStore('appStore');
// primes store to observe action changes
// cleaned up by cat.dispose further down
store.subscribe(() => {});
return renderToString$(
cat,
React.createElement(RoutingContext, props)