Skip to content

Commit 6525d5a

Browse files
committed
Add debug log in unsubscribe
1 parent 9eb7bed commit 6525d5a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Event.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const subscribe = (type, callback) => {
2121

2222
return {
2323
unsubscribe: () => {
24+
console.debug("react-event", "unsubscribe", type, id);
2425
delete subscriptions[type][id];
2526

2627
if (Object.keys(subscriptions[type]).length === 0) {

0 commit comments

Comments
 (0)