web3.js icon indicating copy to clipboard operation
web3.js copied to clipboard

Duplication between .on("data") and .on("changed")

Open NikoKodzhabashev opened this issue 3 years ago • 1 comments

This is not a Bug Report, Feature Request, or related to Documentation

  • [x] I have searched the existing issues

Is there an existing issue for this?

  • [x] I have searched the existing issues

What's up?

Hello. Hope you are doing well. I have noticed that when reorg has happened "changed" and "data" callbacks are invoked with duplicated data and the only difference is in the "removed" property: "data -> removed: false", "changed -> removed: true".

So I was wondering if this is intentional.

P.S: In the end, I am getting back 3x data: 2x in "data" callback and 1x in "changed"

Examples/References

No response

NikoKodzhabashev avatar Jul 29 '22 13:07 NikoKodzhabashev

Hey @NikoKodzhabashev Thanks for reaching out! Could you please provide an example of this?

nikoulai avatar Sep 09 '22 10:09 nikoulai

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.

github-actions[bot] avatar Nov 09 '22 00:11 github-actions[bot]