Comments (2)
So I don't think there's actually a very generic way to do this, but if an async action can be canceled, you can use on_cleanup
to do it. I've added an example of that to the Hackernews example.
from leptos.
As far as I understand all futures are cancellable by simply dropping them. It may have unexpected side-effects depending on the implementation of the future but that's up to the user to analyze.
from leptos.
Related Issues (20)
- ci: semver checks fail with a compiler error
- Fix and reenable cargo-semver-checks HOT 2
- server_fn 0.6.9 compile error: the trait bound `Vec<u8>: From<bytes::Bytes>` is not satisfied HOT 2
- Failure to Version Examples HOT 2
- Reading a resource in an effect incorrectly(?) results in a warning about hydration issues
- Help converting examples from `nightly` to `stable` HOT 6
- Unused stored children causes hydration error. (ssr) HOT 7
- fix(ci): false leptos changes detected
- Variably mounted children stop responding to signals on second mount HOT 7
- build breaks after cargo-leptos version upgrade HOT 1
- Moving All The Time HOT 2
- Using leptos_actix::redirect in a server function with JS disabled in Firefox or Chromium results in an empty response HOT 2
- Suspense and ErrorBoundary Doesn't render Ok() case if initial render is Err() until transitioning from Err -> Ok -> Err -> Ok HOT 2
- Make NavigateOptions configurable for create_query_signal HOT 1
- Memory leak in leptos_router HOT 2
- Invalid `KeyboardEvent` type when triggering autocomplete HOT 3
- Allow multiple classes in the class-tuple syntax HOT 4
- Inconsistent behaviour for buttons with formmethod="dialog" rendered on the client HOT 1
- NodeRef on_load panics when ref is remounted HOT 2
- DX regression in view macro for rust-analyzer 2024-03-18 (v0.3.1885) and newer HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leptos.