Evan Almloff
e4764f2bba
switch from slab to slotmap for tasks to fix that ABA problem ( #2488 )
2024-06-07 14:36:08 -07:00
Evan Almloff
5290b658fd
Fix effects triggered from async tasks; improve work scheduling docs ( #2370 )
...
* outline work scheduling
* move scheduling code from dirty_scope to scheduler
* introduce queue_effect
* Run effects after all tasks are polled if there are no components rerendered
* add a new test for async effects
2024-05-04 15:30:13 +01:00
Evan Almloff
bbc81b8f9c
fix memos in children; introduce isomorphic spawn
2024-03-08 16:40:31 -06:00
Evan Almloff
c9603ea984
only poll suspended futures
2024-03-05 18:24:01 -06:00
Evan Almloff
78b9b157dc
fix formatting
2024-03-04 12:04:09 -06:00
Evan Almloff
a14e5be7ad
Fix effect ordering after reruns
2024-03-01 12:46:07 -06:00
Jonathan Kelley
7e54039ed2
fix make tests
2024-02-05 12:24:59 -08:00
Evan Almloff
356497df4e
fix some clippy lints
2024-02-05 08:17:25 -06:00
Jonathan Kelley
8f70a84c70
Use futures_util mutex instead of flume for sending flush lock wakeups
2024-02-02 13:09:26 -08:00
Jonathan Kelley
968f24a7b3
wip: reactive context instead of effect
2024-02-01 13:21:52 -08:00
Jonathan Kelley
7b0dcb3206
Add flush_sync and pre_render methods to core
2024-01-28 01:30:33 -08:00
Evan Almloff
50873bf9c7
fix component swap test
2024-01-22 09:39:31 -06:00
Evan Almloff
cdf25f0c14
run hook destructors inside of the scope they were created in
2024-01-22 09:32:53 -06:00
Jonathan Kelley
728a26a2cc
Fix borrowmut error in nested spawns
2024-01-19 22:01:21 -08:00
Evan Almloff
d28221bdc2
unqueue tasks when a scope is dropped
2024-01-17 08:36:39 -06:00
Jonathan Kelley
9d0d5d74f6
Remove last bit of unsafe
2024-01-16 17:52:59 -08:00
Jonathan Kelley
3008870818
Cleanup runtime code
2024-01-16 17:38:39 -08:00
Jonathan Kelley
374c7d0cd8
Cleanup more of core
2024-01-16 17:14:19 -08:00
Evan Almloff
e65c5f0eb3
depreciate the render macro
2024-01-16 13:18:46 -06:00
Jonathan Kelley
1332b82dc8
Expose current task
2024-01-15 17:32:49 -08:00
Evan Almloff
940108f242
fix hydration
2024-01-15 13:23:35 -06:00
Evan Almloff
16d5d00bdf
fix ssr tests
2024-01-15 11:12:24 -06:00
Jonathan Kelley
2ae3241cc0
Merge branch 'master' into jk/breaking-merged
2024-01-11 16:04:36 -08:00
Evan Almloff
fd0a53ab63
make all core tests compile
2024-01-11 15:18:11 -06:00
Evan Almloff
1794debf79
fix components that take no arguments
2024-01-11 11:11:44 -06:00
Evan Almloff
404c864246
make the root component take no arguments
2024-01-11 10:48:04 -06:00
Jonathan Kelley
6f15e0e924
Fix ci failure on unused cfg deps
2024-01-08 14:37:05 -08:00
Jonathan Kelley
8323e45970
Call handlers from context of a runtime and scope
2024-01-05 17:35:37 -08:00
Evan Almloff
3865f44081
make desktop compile
2024-01-05 14:39:45 -06:00
Evan Almloff
c48788270e
fix lints in miri
2023-12-17 16:46:32 -06:00
Evan Almloff
23c215da02
make RuntimeGuard public
2023-09-17 14:11:13 -05:00
Evan Almloff
ed9573094c
fix ComponentProps partialeq
2023-09-11 15:13:29 -05:00
Evan Almloff
083ccd765c
fix formatting
2023-09-10 13:23:29 -05:00
ealmloff
28d71624ef
Restore context changes
2023-09-09 16:00:29 -05:00
Evan Almloff
9496853fbc
expose public methods for manipulating the global runtime
2023-09-08 10:05:58 -05:00
Evan Almloff
24c626b306
fix clippy
2023-08-08 13:43:57 -07:00
Evan Almloff
4ee4cf23d3
restore a few unneeded breaking changes
2023-08-08 13:37:29 -07:00
Evan Almloff
0c17bdb737
don't subscribe in tasks or event handlers
2023-08-07 17:55:29 -07:00
Evan Almloff
6ca170453b
handle virtual dom switching
2023-08-07 14:59:58 -07:00
Evan Almloff
a2c7b69a1d
set the scope stack correctly
2023-08-04 14:19:59 -07:00
Evan Almloff
b09e528aaa
fix recursive runtime drop impl
2023-08-04 14:14:56 -07:00
Evan Almloff
cb4c46154d
fix scope context
2023-08-04 14:12:59 -07:00
Evan Almloff
04cdb14e5b
improve signal copy runtime
2023-08-04 13:53:05 -07:00