Commit Graph
121 Commits
Author SHA1 Message Date
Jonathan Kelley 7b0dcb3206 Add flush_sync and pre_render methods to core 2024-01-28 01:30:33 -08:00
Evan Almloff c172914b21 drop scopes in order when dropping the virtual dom 2024-01-23 11:40:45 -06:00
Evan Almloff d28221bdc2 unqueue tasks when a scope is dropped 2024-01-17 08:36:39 -06:00
Evan Almloff 701093ede5 Try to rerun all dirty scopes before polling any tasks to fix effect ordering 2024-01-17 08:17:30 -06:00
Evan Almloff a1c68448a7 fix placeholder template names 2024-01-15 10:15:55 -06:00
Evan Almloff b43dfb1f67 fix mounted information 2024-01-09 11:35:55 -06:00
Evan Almloff 8eb2b74832 move mounted info to the VDOM 2024-01-09 11:01:11 -06:00
Evan Almloff d90c71c508 move creation functions into the structs they are creating and unify user and system events 2024-01-05 13:18:48 -06:00
Evan Almloff a1676537ad restore drop scope 2024-01-05 12:28:45 -06:00
Evan Almloff efd301a878 clippy fix 2024-01-05 12:26:12 -06:00
Evan Almloff 32b15fc851 make core compile 2024-01-05 12:25:18 -06:00
Evan Almloff 0c76770da0 remove a lot of unsafe 2024-01-05 10:57:05 -06:00
Evan Almloff c70e2bfcb6 move diffing into the global runtime 2024-01-05 09:32:50 -06:00
Evan Almloff f42ef3ef9d remove more lifetimes 2024-01-05 08:39:22 -06:00
Evan Almloff a120af33ad Merge branch 'master' into fix-event-bubbling 2023-11-11 17:53:47 -06:00
Evan Almloff 370c6cb9d2 fix clippy 2023-10-25 16:47:04 -05:00
Evan Almloff b99f081c08 drop any attribute after rendering 2023-10-25 16:37:04 -05:00
Evan Almloff 73e0be9e65 recycle vnode ids 2023-09-11 16:25:32 -05:00
Evan Almloff 589483d892 remove logs 2023-09-11 16:18:55 -05:00
Evan Almloff 35b643e23f switch to bubble ids on vnodes to fix nodes under fragments pointing to an invalid parent 2023-09-11 15:55:58 -05:00
Evan Almloff 992ac4a3fb clear borrowed props after ensure_drop_safety 2023-09-06 16:12:01 -05:00
Evan Almloff 02456c1068 fix double drop of bubble id 2023-09-05 21:21:54 -05:00
Evan Almloff 9552ab6c1c pass event propagation test 2023-09-04 19:10:11 -05:00
Evan Almloff d26aa95bcd update vnode ptr when parent of component reruns 2023-09-04 09:57:26 -05:00
Evan Almloff cfc6887e34 use raw pointers instead of transmute to make miri happy 2023-09-04 09:28:16 -05:00
Evan Almloff cf04256395 try to keep template indexes valid 2023-08-31 16:14:14 -05:00
Evan Almloff 036e1ff0f5 remove node refs before dropping nodes 2023-08-31 15:38:31 -05:00
Jani MustonenandJani Mustonen 31f8bab20d Add ScopeId::ROOT (#1398)
* add ScopeId::ROOT

* replace ScopeId(0) with ScopeId::ROOT

---------

Co-authored-by: Jani Mustonen <jani.mustonen@taitounited.fi>
2023-08-25 08:31:23 -05:00
Evan Almloff dc4707ee2a WIP fix event bubbling 2023-08-23 13:01:37 -05:00
Evan Almloff e337aff0a4 WIP split element from element ref 2023-08-23 10:48:10 -05:00
Evan Almloff ddbe913e79 make signals non-breaking 2023-08-07 14:50:36 -07:00
Evan Almloff a6f611eccf fix subscriptions in events 2023-08-04 17:23:57 -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
Jonathan Kelley 4240f8428c Fix: dont use bumpslab anymore, just box scopestates 2023-07-19 18:40:43 -07:00
Jonathan Kelley 47513e8b9e Use boxes instead of bumpslab for hooks 2023-07-06 12:43:04 -07:00
Jonathan Kelley 10a3b228f6 Add some logging and debug 2023-07-05 15:19:26 -07:00
Evan Almloff 4847789a83 fix event bubbling within a single template 2023-03-12 14:47:30 -05:00
Evan Almloff ae028d82f8 use bump slab 2023-01-22 17:16:34 -06:00
Evan Almloff ba79d4babd don't-box-scopestates 2023-01-22 15:05:32 -06:00
Evan Almloff 8548b324f1 fix dropping nested scopes 2023-01-15 21:23:49 -06:00
Evan Almloff d13d1fb1c9 Merge branch 'upstream' into fix-future-on-dropped-scope 2023-01-15 14:01:11 -06:00
Evan Almloff d7f9a07f4e fix 2023-01-15 13:52:06 -06:00
Jonathan Kelley 69a347a551 fix: scopes not dropping their hooks 2023-01-15 10:02:24 -08:00
Evan Almloff 09da9c04a8 Use zero cost option instead of null pointers 2023-01-12 15:42:23 -06:00
Evan Almloff 927db9723a handle abort diffing 2023-01-07 19:01:29 -06:00
Evan Almloff c0f9355648 fix any value dropping 2023-01-02 21:26:12 -06:00
Evan Almloff 51dba50c04 use BumpBox<Any> and FromAnyValue instead of sync bounds 2023-01-02 14:40:25 -06:00
Evan Almloff 044462876d Merge branch 'upstream' into fix-non-str-attributes 2022-12-28 20:36:57 -06:00
= 1555500fbd drop any values correctly 2022-12-26 10:53:25 -06:00