Commit Graph
38 Commits
Author SHA1 Message Date
Jonathan Kelley 4a72b3140b feat: amazingly awesome error handling 2021-07-18 12:39:32 -04:00
Jonathan Kelley c79d9ae674 feat: buff up html allowed attributes 2021-07-12 23:44:20 -04:00
Jonathan Kelley fb0c6d2ea4 chore: remove unnecessary import 2021-07-12 11:03:35 -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 8cfc437bfe wip: some project refactor 2021-07-09 11:54:07 -04:00
Jonathan Kelley 58ab51a4e4 wip: more refactor 2021-07-09 01:42:26 -04:00
Jonathan Kelley a38a81e129 wip: fix issues with lifetimes
this commit fixes some lifetime issues regarding having to "move" data into the IntoVNode closure.
2021-07-07 13:51:55 -04:00
Jonathan Kelley 81382e7044 chore: rename ctx to cx 2021-06-25 21:15:33 -04:00
Jonathan Kelley 73047fe956 feat: props memoization is more powerful
This commit solves the memoization , properly memoizing properties that don't have any generic parameters. This is a rough heuristic to prevent non-static lifetimes from creeping into props and breaking our minual lifetime management.

Props that have a generic parameter are opted-out of the `partialeq` requirement and props *without* lifetimes must implement partialeq. We're going to leave manual disabling of memoization for future work.
2021-06-22 17:20:54 -04:00
Jonathan Kelley 62ae5d3bb9 wip: rethinking stack machine 2021-06-19 20:31:25 -04:00
Jonathan Kelley 36ea39ae30 Feat: rename recoil to atoms 2021-06-16 11:19:37 -04:00
Jonathan Kelley fe6938ceb3 wip: pre vnodes instead of vnode 2021-06-08 14:00:29 -04:00
Jonathan Kelley e3d9db0847 wip: successfully building 2021-06-07 14:14:49 -04:00
Jonathan Kelley 7790750349 wip: merge in some code from the other branch 2021-06-05 23:47:54 -04:00
Jonathan Kelley 50c8b93aad Feat: move the rsx macro around 2021-06-03 10:42:28 -04:00
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 ee67654f58 wip: recoil 2021-05-26 01:40:30 -04:00
Jonathan Kelley c28697e1fe Feat: some code health 2021-05-16 02:06:02 -04:00
Jonathan Kelley ec801eab16 wip: foregin eq from comparapable comp type.
This commit adds the framework for "comparable components". This allows
complete sealing of bump-allocated properties types, and a comparison method
that performs a "safe" cast without transmute. This lets us completely erase types
but still be able to perform partialeq over render frames
2021-03-12 13:03:37 -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 5abda91892 Feat: add some docs 2021-03-10 19:24:45 -05:00
Jonathan Kelley 37f5a7ad33 Feat: wire up props macro 2021-03-09 14:45:52 -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 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 83451372aa Feat: clean up code 2021-02-24 01:32:50 -05:00
Jonathan Kelley 7a6aabe4f3 Feat: WIP ctx 2021-02-20 21:59:16 -05:00
Jonathan Kelley ea2aa4b0c9 Feat: event loop 2021-02-12 16:11:33 -05:00
Jonathan Kelley 8295ac4b3d Feat: major overhaul, wire up event system 2021-02-12 03:07:35 -05:00
Jonathan Kelley f47651b32a Feat: overall API updates 2021-02-12 00:29:46 -05:00
Jonathan Kelley 125f5426a4 Feat: push new component API and context API 2021-02-11 23:03:01 -05:00
Jonathan Kelley ee23ea6c3a Feat: fix docs names 2021-02-08 11:12:02 -05:00
Jonathan Kelley c9d95dd1dc Feat: move out scope into its own file 2021-02-07 17:38:17 -05:00