@reactables/examples 0.4.3-alpha.0 → 0.4.4-alpha.0
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.
- package/dist/index.js +10 -13
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -142,19 +142,16 @@ var RxEventTickets = function (getPriceApi) {
|
|
|
142
142
|
var payload = _a.payload;
|
|
143
143
|
return (__assign(__assign({}, state), { controls: payload, calculating: true }));
|
|
144
144
|
},
|
|
145
|
-
effects:
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
return
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
},
|
|
156
|
-
]
|
|
157
|
-
}); }
|
|
145
|
+
effects: [
|
|
146
|
+
function (controlChange$) {
|
|
147
|
+
return controlChange$.pipe(operators.switchMap(function (_a) {
|
|
148
|
+
var _b = _a.payload, event = _b.selectedEvent, qty = _b.qty;
|
|
149
|
+
return getPriceApi({ event: event, qty: qty });
|
|
150
|
+
}),
|
|
151
|
+
// Map success response to success action
|
|
152
|
+
operators.map(function (price) { return ({ type: 'fetchPriceSuccess', payload: price }); }));
|
|
153
|
+
},
|
|
154
|
+
]
|
|
158
155
|
},
|
|
159
156
|
fetchPriceSuccess: function (state, _a) {
|
|
160
157
|
var payload = _a.payload;
|
package/package.json
CHANGED
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"author": "David Lai",
|
|
15
15
|
"license": "ISC",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@reactables/core": "^0.4.
|
|
17
|
+
"@reactables/core": "^0.4.4-alpha.0"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"rxjs": "^6.0.0 || ^7.0.0"
|
|
21
21
|
},
|
|
22
|
-
"version": "0.4.
|
|
22
|
+
"version": "0.4.4-alpha.0"
|
|
23
23
|
}
|