refactor(store): Return unsubscribe directly

This commit is contained in:
Jonas Hermsmeier 2018-05-29 17:36:51 +02:00
parent 3d47f494a8
commit ad6be11bbc
No known key found for this signature in database
GPG Key ID: 1B870F801A0CEE9F

View File

@ -535,7 +535,7 @@ module.exports.observe = (onChange) => {
}
}
const unsubscribe = module.exports.subscribe(changeHandler)
changeHandler()
return unsubscribe
return module.exports.subscribe(changeHandler)
}