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
e72bf5820f
reuse remove_task in handle_task_wakeup
2024-03-07 20:47:43 -06:00
Evan Almloff
c9603ea984
only poll suspended futures
2024-03-05 18:24:01 -06:00
Evan Almloff
c7ffdc7b29
rerun tasks in the same order as components
2024-02-29 11:43:07 -06:00
Jonathan Kelley
3295935de7
Fix panic on pausing dead tasks
2024-02-02 14:33:02 -08:00
Jonathan Kelley
f44b72f5e1
server_future uses use_resource
2024-02-02 14:08:21 -08:00
Jonathan Kelley
968f24a7b3
wip: reactive context instead of effect
2024-02-01 13:21:52 -08:00
Jonathan Kelley
0c71b95e82
skeleton of use_server_future with reactivity
2024-02-01 13:21:52 -08:00
Jonathan Kelley
0bd9692e45
Fix cargo test and a number of little cleanup bugs
2024-01-30 17:33:14 -08:00
Jonathan Kelley
dcdada542b
Properly implement wait_for_suspense
...
Wait_for_suspense now does not call flush_sync, making it
appropriate for deferring effects on the server. Futures will
still run on the server (as needed to progress suspense)
but use_effect / and memo watchers will not run on the server
2024-01-29 14:12:05 -08:00
Jonathan Kelley
1847c737e9
Queue effects to run after flush_sync
2024-01-28 02:21:05 -08:00
Jonathan Kelley
7b0dcb3206
Add flush_sync and pre_render methods to core
2024-01-28 01:30:33 -08: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
374c7d0cd8
Cleanup more of core
2024-01-16 17:14:19 -08:00
Jonathan Kelley
70b983d090
wip: consolidation, simplification
2021-11-05 16:28:08 -04:00
Jonathan Kelley
098d3821ed
wip: changes to scheduler
2021-09-22 01:25:28 -04:00
Jonathan Kelley
7978a17419
wip: bubbling
2021-09-20 12:32:21 -04:00
Jonathan Kelley
f644d7c441
wip: move things into a "shared" object
2021-07-23 10:27:43 -04:00
Jonathan Kelley
00231adfa2
feat: code quality improvements for core
2021-07-15 04:09:28 -04:00
Jonathan Kelley
37ed4bed8c
wip: more work on suspense and documentation
2021-07-15 03:38:09 -04:00
Jonathan Kelley
3a57b94262
feat: task system works
...
but I broke the other things :(
2021-07-14 02:04:19 -04:00
Jonathan Kelley
c7ca7c2273
wip: cargo fix
2021-07-13 16:48:47 -04:00
Jonathan Kelley
56e7eb83a9
wip: more examples
2021-07-11 19:31:07 -04:00
Jonathan Kelley
9abb0470b7
feat: static node infrastructure and ssr changes
2021-07-11 14:49:52 -04:00
Jonathan Kelley
975fa566f9
wip: more refactor for async
2021-07-09 12:47:41 -04:00
Jonathan Kelley
feab50f24a
wip: some work
2021-07-09 03:39:45 -04:00
Jonathan Kelley
1cc1679a6b
feat: refactor out the hooks implementation
2021-07-09 01:26:15 -04:00