Jonathan Kelley
508c560320
Feat: massive changes to definition of components
...
This change switches back to the original `ctx<props>` syntax for
commponents. This lets lifetime elision to remove the need to match
exactly which lifetime (props or ctx) gets carried to the output. As
such, `Props` is currently required to be static. It *is* possible to
loosen this restriction, and will be done in the future, though only
through adding metadata about the props through the Props derive
macro. Implementing the IS_STATIC trait is unsafe, so the derive macro
will do it through some heuristics.
For now, this unlocks sharing vnodes from parents to children, enabling
pass-thru components, fragments, portals, etc.
2021-06-01 18:33:15 -04:00
Jonathan Kelley
c1fd848f89
WIP: move to static props
2021-05-31 18:55:56 -04:00
Jonathan Kelley
c5089ba3c5
wip: more progress on parity docs.
...
Placeholders in the rsx macro for future features.
2021-05-28 12:56:21 -04:00
Jonathan Kelley
4d5c528b07
Feat: dirty hack to enable send + sync on virtual dom
2021-05-28 00:28:09 -04:00
Jonathan Kelley
fe67ff9fa4
wip: doesnt share on thread
2021-05-27 17:57:59 -04:00
Jonathan Kelley
ee67654f58
wip: recoil
2021-05-26 01:40:30 -04:00
Jonathan Kelley
b843dbd367
WIP: Todomvc in progress
2021-05-19 10:14:02 -04:00
Jonathan Kelley
0d44f009b0
Feat: introduce children for walking down the tree
2021-05-18 10:36:17 -04:00
Jonathan Kelley
24805a02f6
Feat: context api wired up
2021-05-18 01:16:43 -04:00
Jonathan Kelley
4c8130c4e4
Feat: about to consolidate context and scope
2021-05-17 17:59:10 -04:00
Jonathan Kelley
3de54d0b52
Feat: remove old code
2021-05-16 03:01:36 -04:00
Jonathan Kelley
2284b35782
Feat: abstraction lifetimes work out nicely
2021-05-16 02:58:57 -04:00
Jonathan Kelley
c28697e1fe
Feat: some code health
2021-05-16 02:06:02 -04:00
Jonathan Kelley
9810feebf5
Feat: major overhaul to diffing
2021-05-15 12:03:08 -04:00
Jonathan Kelley
c809095124
Wip
2021-04-09 12:04:04 -04:00
Jonathan Kelley
2eeb8f2386
wip: refactor a bit
2021-04-04 21:47:53 -04:00
Jonathan Kelley
ce33031519
wip: todomvc
2021-03-29 12:31:47 -04:00
Jonathan Kelley
742f150eb3
wip: begint to accept iterator types
2021-03-18 18:54:26 -04:00
Jonathan Kelley
7856f2b153
wip: livehost bones
2021-03-16 11:03:59 -04:00
Jonathan Kelley
5b7887d76c
Fix: some stuff related to event listeners. POC for lifecyel
2021-03-15 02:16:03 -04:00
Jonathan Kelley
4e48e0514e
wip: diffing approach slightly broken
2021-03-14 20:33:37 -04:00
Jonathan Kelley
9d0727edab
Feat: remove old macro
2021-03-13 19:11:06 -05:00
Jonathan Kelley
39bd1856f4
Feat: update examples
2021-03-12 17:21:06 -05:00
Jonathan Kelley
305ff919ef
Feat: ensure mutabality is okay when not double-using the components
2021-03-12 16:58:30 -05:00
Jonathan Kelley
b3c96a5996
Feat: props now autoderives its own trait
2021-03-12 15:41:36 -05:00
Jonathan Kelley
d4f1ceaffb
feat: somewhat working with rc and weak
2021-03-12 14:27:32 -05:00
Jonathan Kelley
5ad81885e4
wip: staticify?
2021-03-11 12:27:01 -05:00
Jonathan Kelley
78d093a945
FIx: cargo fix to clean up things
2021-03-10 19:42:31 -05:00
Jonathan Kelley
29751a4bab
Feat: implement vcomp fully
2021-03-10 19:42:10 -05:00
Jonathan Kelley
7158bc3575
Feat: revert FC changes (like the old style).
...
This commit reverts to the old style of props + FC. The old style is desirable
because people comfortable with react can automatically be comfortable with
dioxus. It's also nice in that the same props can be used to drive two different
components - something the trait version couldn't do. Now, our trait bound forces
implementations to have the #[derive(Props)] flag. This will need to implement the
Properties trait as well as PartialEq (using ptr::equal for closure fields).
2021-03-09 00:58:20 -05:00
Jonathan Kelley
92d9521a73
WIP: remove FC
2021-03-07 21:28:20 -05:00
Jonathan Kelley
3740f81383
WIP: still a bit stumped on DFS vs BFS
2021-03-05 15:02:36 -05:00
Jonathan Kelley
89f2290692
feat: dyn scope
2021-03-04 23:57:25 -05:00
Jonathan Kelley
8dc26195e2
Feat: it's awersome
2021-03-04 19:20:55 -05:00
Jonathan Kelley
bdd6be309e
Feat: notes on safety, and inline listeners
2021-03-04 13:49:18 -05:00
Jonathan Kelley
5a9155b059
Feat: more cleanup
2021-03-04 12:03:22 -05:00
Jonathan Kelley
fcd68e61d2
Feat: listeners now have scope information
2021-03-03 11:13:46 -05:00
Jonathan Kelley
cb74d70f83
wip: broken, but solved
2021-03-03 02:27:26 -05:00
Jonathan Kelley
c8bb392cad
Feat: view -> render
2021-02-28 21:21:17 -05:00
Jonathan Kelley
3b30fa61b8
Feat: a few bugs, but the event system works!
2021-02-28 03:08:08 -05:00
Jonathan Kelley
2041c88d07
Feat: patch to diff to allow scopes
2021-02-27 22:52:32 -05:00
Jonathan Kelley
32b45e5ba1
Feat: move webview logic into library
2021-02-25 18:44:00 -05:00
Jonathan Kelley
18a7a1f9c4
Chore: comments
2021-02-24 10:12:26 -05:00
Jonathan Kelley
06ae4fc178
Feat: wire up rebuild
2021-02-24 03:51:26 -05:00
Jonathan Kelley
83451372aa
Feat: clean up code
2021-02-24 01:32:50 -05:00
Jonathan Kelley
5204862bc2
Feat: fix internal lifecycle
2021-02-24 01:31:19 -05:00
Jonathan Kelley
7a6aabe4f3
Feat: WIP ctx
2021-02-20 21:59:16 -05:00
Jonathan Kelley
b3e6886351
Feat: desktop app wired up
2021-02-18 20:04:25 -05:00
Jonathan Kelley
bcbb93b697
Feat: remove our use of ouroborous.
...
Instead, we're just going stick with unsafely transmuting the static
lifetime when accessing the active frame. This is a bit scarier, but
greatly simplifies containing the VNode.
2021-02-17 20:56:53 -05:00
Jonathan Kelley
e3ede7fcbf
Feat: re-enable stack machine approach
2021-02-17 10:53:55 -05:00