Skip to content

Node reordering with adapter throws an error #563

Description

@igor10k

Reordering causes the node to get removed and then instantly re-inserted. When it's removed the listeners get instantly released which causes an error:

Uncaught Error: You attempted to call a function that was already released.

The receivers don't suffer from that as even listeners are leaking there.

Fixing #562 will probably fix this issue but depending on the implementation might require some changes in the adapter.

A "fix" until then is to not release:

import {retain} from 'rpc_library';

function release() {}

const receiver = new SignalRemoteReceiver({retain, release});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions