mirror of
https://github.com/appy-one/acebase-core.git
synced 2026-06-30 06:02:04 -06:00
remove erroneous .off('mutations')
This commit is contained in:
parent
f96f3b2327
commit
d0c2eadedc
1 changed files with 1 additions and 1 deletions
|
|
@ -463,7 +463,7 @@ export class LiveDataProxy {
|
|||
};
|
||||
localMutationsEmitter.on('mutations', mutationsHandler);
|
||||
const stop = () => {
|
||||
localMutationsEmitter.off('mutations').off('mutations', mutationsHandler);
|
||||
localMutationsEmitter.off('mutations', mutationsHandler);
|
||||
clientSubscriptions.splice(clientSubscriptions.findIndex(cs => cs.stop === stop), 1);
|
||||
};
|
||||
clientSubscriptions.push({ target, stop });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue