EventEmitter#removeSubscription is deprecated in favor of remove() on… · rescript-react-native/rescript-react-native@a771dc8

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit a771dc8

committed

EventEmitter#removeSubscription is deprecated in favor of remove() on subscription itself

1 parent 7573c50 commit a771dc8

File tree

1 file changed

+

1

-

0

lines changed

1 file changed

+

1

-

0

lines changed

Lines changed: 1 addition & 0 deletions

Original file line numberDiff line numberDiff line change

@@ -11,6 +11,7 @@ external addListener: (t, string, 'a => unit) => subscription = "addListener"

1111

@send

1212

external removeAllListeners: (t, string) => unit = "removeAllListeners"

1313
14+

@deprecated("Instead of using removeSubscription(), invoke `remove()` on the subscription itself.")

1415

@send

1516

external removeSubscription: (t, subscription) => unit = "removeSubscription"

1617

0 commit comments

Comments

 (0)