Skip to content

Commit 60a5ec5

Browse files
committed
Preps 1.0.0-alpha.3
1 parent bdd936c commit 60a5ec5

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

commonjs/JobProvider.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ var JobProvider = function (_Component) {
4848
register: this.jobContext.register,
4949
get: this.jobContext.get,
5050
getRehydrate: function getRehydrate(id) {
51-
var rehydration = _this2.rehydrateState.jobs[id];
52-
delete _this2.rehydrateState.jobs[id];
53-
return rehydration;
51+
return _this2.rehydrateState.jobs[id];
5452
},
5553
removeRehydrate: function removeRehydrate(id) {
5654
delete _this2.rehydrateState.jobs[id];

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-jobs",
3-
"version": "1.0.0-alpha.2",
3+
"version": "1.0.0-alpha.3",
44
"description": "Attach asynchronous/synchronous \"jobs\" to your components, with SSR support.",
55
"license": "MIT",
66
"main": "commonjs/index.js",

umd/react-jobs.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,7 @@ var JobProvider = function (_Component) {
168168
register: this.jobContext.register,
169169
get: this.jobContext.get,
170170
getRehydrate: function getRehydrate(id) {
171-
var rehydration = _this2.rehydrateState.jobs[id];
172-
delete _this2.rehydrateState.jobs[id];
173-
return rehydration;
171+
return _this2.rehydrateState.jobs[id];
174172
},
175173
removeRehydrate: function removeRehydrate(id) {
176174
delete _this2.rehydrateState.jobs[id];

umd/react-jobs.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)