Skip to content

Experimental tanstack live query: "signal aborted without reason" on page reload #852

@strblr

Description

@strblr

Environment

Bun 1.2.19
Vite 7.1.1
orpc 1.7.11

Reproduction

  1. Use experimental_liveOptions from the tanstack integration:
const counter = useQuery(orpc.demo.counter.experimental_liveOptions());

counter is defined like this:

export const counter = base.handler(async function* () {
  let count = 0;
  while (true) {
    yield { count };
    count++;
    await Bun.sleep(1000);
  }
});
  1. In vite dev mode, reload the page in the browser

Describe the bug

When reloading the page, this error is intercepted in the client's RPCLink:

AbortError: signal is aborted without reason

The link looks like this:

const link = new RPCLink({
  url: import.meta.env.VITE_API_URL,
  interceptors: [
    onError(error => {
      console.error(error);
    })
  ]
});

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions