Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] _ev.off() disables the entire .map() listener, rather than the individual item #1335

Open
Vectorrent opened this issue Aug 17, 2023 · 1 comment
Labels

Comments

@Vectorrent
Copy link

Mark asked me to open a bug report about this one. Here is some replica code:

gun.get('test')
    .get('neurons')
    .map((value, key, _msg, _ev) => {
        console.log(value)
        _ev.off()
    })

After receiving just one item, the entire .map() listener is disabled. The expected behavior is to disable the listener for just one particular item - not the entire map.

Not a huge priority for me, personally, as I've found a workaround. Would be nice if this worked, though.

@amark
Copy link
Owner

amark commented Nov 8, 2023

😭

@bmatusiak bmatusiak added the bug? label Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants