Skip to content

Exception in subscription body fails key registration #754

Closed
@arv

Description

@arv

If we get an exception when a subscription body is called then we do not know what keys it depends on and we fail to call it again when we the keys change.

For example:

rep.subscribe(
  async tx => {
    const a = await tx.get('a');
    if (!a) {
      throw new Error('oops');
    }
    return a;
  },
  {
    onDone(result) {},
    onError(error) {
      console.error(error);
    },
  },
);

Thanks @aroc for helping us find this.

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