Skip to content

Commit 78fbc20

Browse files
committed
Return an appropriate function for unsubscribe.
1 parent c2326f9 commit 78fbc20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Branch {
4444
const subscriber = new BranchSubscriber(options)
4545
subscriber.subscribe()
4646

47-
return subscriber.unsubscribe
47+
return () => subscriber.unsubscribe()
4848
}
4949

5050
skipCachedEvents() {

0 commit comments

Comments
 (0)