@taujs/react 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +13 -15
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -150,21 +150,19 @@ var createRenderStream = (serverResponse, { onHead, onFinish, onError }, {
150
150
  const { pipe } = renderToPipeableStream(appElement, {
151
151
  bootstrapModules: bootstrapModules ? [bootstrapModules] : void 0,
152
152
  onShellReady() {
153
- Promise.resolve(initialDataPromise).then((resolvedData) => {
154
- const dynamicHeadContent = resolveHeadContent(headContent, resolvedData);
155
- onHead(dynamicHeadContent);
156
- pipe(
157
- new Writable({
158
- write(chunk, _encoding, callback) {
159
- serverResponse.write(chunk, callback);
160
- },
161
- final(callback) {
162
- onFinish(store.getSnapshot());
163
- callback();
164
- }
165
- })
166
- );
167
- });
153
+ const dynamicHeadContent = resolveHeadContent(headContent, initialDataPromise);
154
+ onHead(dynamicHeadContent);
155
+ pipe(
156
+ new Writable({
157
+ write(chunk, _encoding, callback) {
158
+ serverResponse.write(chunk, callback);
159
+ },
160
+ final(callback) {
161
+ onFinish(store.getSnapshot());
162
+ callback();
163
+ }
164
+ })
165
+ );
168
166
  },
169
167
  onAllReady() {
170
168
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taujs/react",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "taujs | τjs",
5
5
  "author": "Aoede <taujs@aoede.uk.net> (https://www.aoede.uk.net)",
6
6
  "license": "MIT",