Skip to content

Commit

Permalink
fix(rstream-graph): create null sub for ID renaming
Browse files Browse the repository at this point in the history
- this ensures auto-teardown when unsubscribing nodes
  • Loading branch information
postspectacular committed Apr 16, 2018
1 parent f5aba03 commit 56d919c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rstream-graph/src/graph.ts
Expand Up @@ -59,7 +59,7 @@ const nodeFromSpec = (state: IAtom<any>, spec: NodeSpec) => (resolve) => {
if (i.xform) {
s = s.subscribe(i.xform, i.id);
} else if (i.id) {
s = s.subscribe({}, i.id);
s = s.subscribe(null, i.id);
}
src.push(s);
}
Expand Down

0 comments on commit 56d919c

Please sign in to comment.