Commit graph

8 commits

Author SHA1 Message Date
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
c8bb392cad Feat: view -> render 2021-02-28 21:21:17 -05:00
Jonathan Kelley
204f0d9f16 Feat:
- integrate subscription service into context.
- Update documentation
2021-02-08 16:57:34 -05:00
Jonathan Kelley
c9d95dd1dc Feat: move out scope into its own file 2021-02-07 17:38:17 -05:00
Jonathan Kelley
2c2882c9a2 Feat: more updates to hooks 2021-02-07 14:59:34 -05:00
Jonathan Kelley
4d01436c3f Feat: found a fast solution to hook state 2021-02-06 22:19:56 -05:00
Jonathan Kelley
62d4ad5878 wip: comment out examples and move lifetime in FC type 2021-02-03 14:07:07 -05:00
Jonathan Kelley
07341d2c65 Feat: include the helper 2021-02-03 02:26:04 -05:00