Commit Graph
29 Commits
Author SHA1 Message Date
Evan Almloff 633eae2d5c add use element to html 2023-05-15 14:39:32 -05:00
Alexander Keliris 35cb6616af Add hgroup html tag (#1016)
The [<hgroup>](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/hgroup) HTML element represents a heading and related content. It groups a single <h1>–<h6> element with one or more <p>.
2023-05-10 08:21:05 -05:00
Evan Almloff d8d483a8b4 apply the same fixes to element specific attributes 2023-01-12 11:31:21 -06:00
Maurice Kayser dde4fb31b2 Fix typo (#709) 2023-01-03 10:09:03 -06:00
Evan Almloff a42ed7d445 create hot-reload-context flag 2022-12-23 15:08:44 -06:00
Evan Almloff 776c5e8839 fix hot reloading with global and svg attibutes 2022-12-22 13:52:41 -06:00
Evan Almloff 4364a4b511 handle updating templates better 2022-12-19 19:28:44 -06:00
= ab743e01b7 make html hot reloding context work 2022-12-14 21:38:50 -06:00
= 6d2e510200 WIP implement hot reloading context for html 2022-12-12 21:46:49 -06:00
= c961bf0779 improve and unify element macro 2022-12-11 10:26:21 -06:00
Jonathan Kelley 0dad91bc08 wip: pass more events 2022-11-15 16:37:23 -08:00
Jonathan Kelley 90982e0ccb wip: start to refactor out hot reloading from packages
Also implement alternative simpler template system
2022-10-20 09:56:09 -07:00
Daniel Olano b51abd1a9c Add datetime attribute to time element (#590) 2022-10-14 10:16:52 -05:00
Demonthos 047ed1e553 Subtree memorization / reactive templates (#488)
This commit adds subtree memoization to Dioxus.

Subtree memoization is basically a compile-time step that drastically 
reduces the amount of work the diffing engine needs to do at runtime by
extracting non-changing nodes out into a static "template." Templates 
are then understood by the various renderers in the ecosystem as a 
faster way of rendering the same items. 

For example, in the web, templates are simply a set of DOM Nodes created 
once and then cloned later. This is the same pattern frameworks like Lithtml
and SolidJS use to achieve near-perfect performance. 

Subtree memoization adds an additional level of complexity to Dioxus. The RSX
macro needs to be much smarter to identify changing/nonchanging nodes and
generate a mapping between the Template and its runtime counterparts.

This commit represents a working starter point for this work, adding support 
for templates for the web, desktop, liveview, ssr, and native-core renderers.
In the future we will try to shrink code generation, generally improve 
performance, and simplify our implementation.
2022-09-30 12:03:06 -07:00
Norman Paniagua 8347de5956 Added dialog tag (#533)
* added dialog tag

* updated attribute type
2022-08-24 08:01:40 -05:00
Jon Kelley d9546d9504 Renderers are now packages, not features. (#387)
* feat: use synchronous router design

* feat: function to get router out of dom

* chore: restructure workspace to use renderers as packages, not features
2022-07-09 15:15:20 -04:00
Ian 149d484ffb added menu element 2022-04-18 22:24:17 -04:00
Jonathan Kelley aa60971c5c fix: remove preventdefault on form 2022-02-16 14:03:53 -05:00
Jonathan Kelley 4fd4fa0b09 Merge pull request #94 from JtotheThree/master
Login Form Example
2022-02-16 14:02:47 -05:00
Jonathan Kelley a9ac0568e2 fix: allow prevent_default on svg 2022-02-03 13:19:41 -05:00
JtotheThree 45ebcf6f0e form prevent_default 2022-01-07 20:01:52 -06:00
Jonathan Kelley cb2782b4bb wip: memoize dom in the prescence of identical components 2022-01-05 00:27:22 -05:00
Jonathan Kelley d1560450ba wip: remove runner on hook and then update docs 2022-01-02 02:15:04 -05:00
Jonathan Kelley 8f9a3281e7 wip: add more svg elements 2021-12-29 11:17:39 -05:00
Jonathan Kelley ad4a0eb319 wip: add more svg elements, update readme 2021-12-29 00:56:53 -05:00
Jonathan Kelley a5f05d73ac wip: docs and router 2021-11-19 00:49:04 -05:00
Jonathan Kelley 8bf57dc21d chore: polish 2021-11-16 13:09:41 -05:00
Jonathan Kelley 2933e4bc11 wip: major cleanups to scheduler 2021-11-06 23:11:17 -04:00
Jonathan Kelley 95bd17e38f wip: more raw ptrs 2021-11-05 18:02:44 -04:00