We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51b3220 commit d81a7deCopy full SHA for d81a7de
src/app/api/index.js
@@ -93,13 +93,13 @@ export function connect(config = {}) {
93
listeners[id].push(listener);
94
95
return function unsubscribe() {
96
- const index = listeners.indexOf(listener);
+ const index = listeners[id].indexOf(listener);
97
listeners[id].splice(index, 1);
98
};
99
100
101
- const unsubscribe = (instanceId) => {
102
- delete listeners[instanceId];
+ const unsubscribe = () => {
+ delete listeners[id];
103
104
105
const send = (action, state) => {
0 commit comments