Skip to content

Commit

Permalink
docs: Remove _TYPE suffix from demo
Browse files Browse the repository at this point in the history
  • Loading branch information
ntucker committed Oct 13, 2024
1 parent f35382d commit 78f3f96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/coin-app/src/getManagers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function getManagers() {
latency: 1000,
// skip websocket updates as these are too spammy
predicate: (state, action) =>
action.type !== actionTypes.SET_TYPE || action.schema !== Ticker,
action.type !== actionTypes.SET || action.schema !== Ticker,
},
}),
];
Expand Down
4 changes: 2 additions & 2 deletions examples/coin-app/src/resources/StreamManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default class StreamManager implements Manager {
this.controller = controller;
return next => async action => {
switch (action.type) {
case actionTypes.SUBSCRIBE_TYPE:
case actionTypes.SUBSCRIBE:
// only process registered endpoints
if (
!Object.values(this.entities).find(
Expand All @@ -45,7 +45,7 @@ export default class StreamManager implements Manager {
}

return next(action);
case actionTypes.UNSUBSCRIBE_TYPE:
case actionTypes.UNSUBSCRIBE:
// only process registered endpoints
if (
!Object.values(this.entities).find(
Expand Down

0 comments on commit 78f3f96

Please sign in to comment.