Environment
Bun 1.2.19
Vite 7.1.1
orpc 1.7.11
Reproduction
- 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);
}
});
- 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
Environment
Bun 1.2.19
Vite 7.1.1
orpc 1.7.11
Reproduction
experimental_liveOptionsfrom the tanstack integration:counter is defined like this:
Describe the bug
When reloading the page, this error is intercepted in the client's RPCLink:
The link looks like this:
Additional context
No response
Logs