Skip to content

Commit 78f3f96

Browse files
committed
docs: Remove _TYPE suffix from demo
1 parent f35382d commit 78f3f96

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/coin-app/src/getManagers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function getManagers() {
1414
latency: 1000,
1515
// skip websocket updates as these are too spammy
1616
predicate: (state, action) =>
17-
action.type !== actionTypes.SET_TYPE || action.schema !== Ticker,
17+
action.type !== actionTypes.SET || action.schema !== Ticker,
1818
},
1919
}),
2020
];

examples/coin-app/src/resources/StreamManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default class StreamManager implements Manager {
2929
this.controller = controller;
3030
return next => async action => {
3131
switch (action.type) {
32-
case actionTypes.SUBSCRIBE_TYPE:
32+
case actionTypes.SUBSCRIBE:
3333
// only process registered endpoints
3434
if (
3535
!Object.values(this.entities).find(
@@ -45,7 +45,7 @@ export default class StreamManager implements Manager {
4545
}
4646

4747
return next(action);
48-
case actionTypes.UNSUBSCRIBE_TYPE:
48+
case actionTypes.UNSUBSCRIBE:
4949
// only process registered endpoints
5050
if (
5151
!Object.values(this.entities).find(

0 commit comments

Comments
 (0)