You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.
Bug Report
notifyListeners()
inPlugin.java
only works the first time for retained event arguments due to insufficient empty state check.Capacitor Version
npx cap doctor
output:💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 1.5.0
@capacitor/core: 1.5.0
@capacitor/android: 1.5.0
@capacitor/ios: 1.5.0
Installed Dependencies:
@capacitor/cli 1.4.0
@capacitor/core 1.4.0
@capacitor/android 1.4.0
@capacitor/ios 1.4.0
Affected Platform(s)
Current Behavior
From a plugin, notify listener:
notifyListeners("myListener", jsObjInstance, true)
.. and from TypeScript component:
This works perfectly for the first call.
Expected Behavior
I would expect it to work for subsequent calls as well.
Sample Code or Sample Application Repo
Reproduction Steps
See Current Behavior
Resolutiuon
Add
isEmpty()
checks for lists instead of only doing null-checks.git diff output:
The text was updated successfully, but these errors were encountered: