Commit Graph
12 Commits
Author SHA1 Message Date
Evan Almloff b6dc2a2230 Deduplicate reactive scope updates/Reset subscriptions on reruns/fix use memo double update (#2506)
* deduplicate effect updates

* only subscribe to signals read in the current run of reactive scopes

* subscribe to memo reads after recomputing the value
2024-06-18 18:49:25 -07:00
Evan Almloff d795995e20 Create closure type; allow async event handlers in props; allow short hand event handlers (#2437)
* create closure type; allow async event handlers in props; allow shorthand event handlers

* test forwarding event handlers with the shorthand syntax

* fix clippy

* fix imports in spawn async doctest
2024-06-10 18:47:07 -07:00
Evan Almloff 47c87568e1 Fix event handler memory leak (#2298)
* fix event handler memory leak and double drops

* Prevent double dropping generational boxes

* recycle instead of dropping
2024-04-26 00:47:22 -04:00
Evan Almloff b19a546c0a Don't move over event handler fields when diffing props (#2129)
* don't move over event handler fields when diffing props

* Expand values_memoize_in_place test to cover the new bug case
2024-03-22 15:18:38 -07:00
Evan Almloff 0662033c84 Fix early drop of eventhandlers (#2126)
* fix early drop of eventhandlers

* add a test for stale props that are memorized in place

* fix clippy
2024-03-22 14:37:02 -07:00
Jonathan Kelley f62af4057f Fix clippy lint 2023-07-14 13:22:08 -07:00
Jonathan Kelley 3b3020edd2 Make clippy ignore dumb lint 2023-07-14 13:13:33 -07:00
Torstein Grindvik a3169ac17b Change missing trailing comma span to point to span where comma is missing from
Signed-off-by: Torstein Grindvik <torstein.grindvik@nordicsemi.no>
2023-07-02 15:19:03 +02:00
Evan Almloff b6c7d44a27 fix clippy 2023-01-27 20:35:46 -06:00
Demonthos baf1807338 allow duplicate idents in format_args_f (#515) 2022-08-10 22:45:56 -07:00
Jonathan Kelley 2884d72b08 chore: make clippy happy 2022-07-02 23:45:32 -04:00
Evan Almloff 7730401288 fix escape sequences in ifmt 2022-06-28 12:19:07 -05:00