We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Code that reproduces the issue looks something like this:
// +page.ts export function load() { let reconnect const connection = source(`/room/waiting-lobby`, { close({ connect }) { connect = reconnect } }) }) const events = connection.select('events').json() return { events, connection, reconnect } }
<!-- +page.svelte --> <script> export let data </script> {data.events} <button on:click={data.connection.close}>Disconnect</button> <button on:click={data.reconnect}>Reconnect</button>
Full code repro also raised as this PR, #44
Page loads, disconnects, reconnects, and then disconnects again
Page loads, disconnects, reconnects, and then is no longer able to disconnect by calling data.connection.close()
data.connection.close()
The text was updated successfully, but these errors were encountered:
feat(stream.js): fixing an issue where the stream would not refresh t…
e68f077
…he internal abort controller when calling connect() for a second time. This caused the `close()` function to not work properly. See #43
fa0a8aa
Hello @oscarhermoso ,
This should now be fixed, please update to version 0.12.10 to get the changes.
I've tried your reproduction and it seems to work as intended (can you confirm it's the intended behavior?)
Let me know if this addresses your issue.
Sorry, something went wrong.
Works great! Thanks again @tncrazvan
No branches or pull requests
Reproduce
Code that reproduces the issue looks something like this:
Full code repro also raised as this PR, #44
Expected
Page loads, disconnects, reconnects, and then disconnects again
Actual
Page loads, disconnects, reconnects, and then is no longer able to disconnect by calling
data.connection.close()
The text was updated successfully, but these errors were encountered: