docs: update comments (#13043)
Sen Yang committed
Jul 12, 2018 at 05:31 UTC
9ca37f843194e7a91b7c7250025edaba370f479c
1 file changed
+1
-1
packages/create-subscription/src/createSubscription.js
+1
-1
@@ -21,7 +21,7 @@ export function createSubscription<Property, Value>(
21
getCurrentValue: (source: Property) => Value | void,
22
23
// Setup a subscription for the subscribable value in props, and return an unsubscribe function.
24
- // Return false to indicate the property cannot be unsubscribed from (e.g. native Promises).
24
+ // Return empty function if the property cannot be unsubscribed from (e.g. native Promises).
25
// Due to the variety of change event types, subscribers should provide their own handlers.
26
// Those handlers should not attempt to update state though;
27
// They should call the callback() instead when a subscription changes.