leptos/leptos_dom
rjmac 47abe00993
fix: don't leak canceled timeouts (#2331)
Instead of using `Closure::once_into_js`, this uses `into_js_value`,
which uses weak references to clean up the closure when Javascript no
longer has need of it.

It would be nice to make this (and the similar interval function) drop
the callback promptly when cancelled, but I don't think that's
possible while keeping the handles Copy.

Fixes #2330

Co-authored-by: Robert Macomber <robertm@mox>
2024-02-19 21:17:26 -05:00
..
.cargo feat: improved `<For/>` algorithm (#1146) 2023-06-11 10:20:14 -04:00
examples feat/change: adopt reactive ownership model and drop `cx`/`Scope` (#918) 2023-08-21 19:31:37 -04:00
src fix: don't leak canceled timeouts (#2331) 2024-02-19 21:17:26 -05:00
Cargo.toml chore: remove duplicate `itertools` versions (#2124) 2023-12-20 19:10:00 -05:00
Makefile.toml build: run tasks from workpace or member directory (#1339) 2023-07-13 16:46:51 -04:00