264 Commits

Author SHA1 Message Date
e96ff29f2d
Fixed some trigger subscriber information having the wrong location sometimes. 2024-12-20 20:17:50 +00:00
06dabd431e
Trigger::{add, remove}_subscriber are now private.
Subscribers must be gathered by `Trigger::gather_subscribers`.

This inverts the responsibility of gathering the effects from the caller to the trigger.
This will allow us to add more effect stacks in the future (such as an async task-local effect stack) without changing as much code.
2024-12-20 20:11:43 +00:00
6150fac6fb
Removed all wasm dependencies from dynatos-loadable. 2024-12-20 02:35:56 +00:00
963809a554
Removed all wasm dependencies from dynatos-util. 2024-12-20 01:39:25 +00:00
04abab3007
Moved all wasm things from dynatos-util to dynatos-html. 2024-12-20 01:37:36 +00:00
c8015d9d04
Removed SegVec. 2024-12-20 01:29:13 +00:00
b7c31b73fb
Fixed typo. 2024-12-20 01:25:37 +00:00
68e8f4763a
Fixed dynatos_html::{html, html_file} panicking with a weird error message due to wrong parsed type. 2024-12-20 01:25:33 +00:00
21c7d6038e
Moved cloned macro to zutil. 2024-12-20 01:18:00 +00:00
d84e2c29c7
Updated all dependencies. 2024-12-20 01:07:47 +00:00
7504ef8bff
Updated to rustc 1.85.0-nightly (a4cb3c831 2024-12-17). 2024-12-20 01:02:02 +00:00
d91af40507
Replaced most untyped quote::quote! with typed syn::parse_quote!. 2024-12-07 02:01:24 +00:00
7e11723f2d
dynatos_html::{html, html_file} no longer uses the string span as the identifier span. 2024-12-07 01:54:15 +00:00
d1f59f4f81
Fixed dynatos_html::{html, html_file} not allowing arguments on their own. 2024-12-06 10:15:25 +00:00
455858bf63
Improved formatting for dynatos_html_macros::Node::from_html. 2024-12-06 09:54:01 +00:00
a6caa9729e
dynatos_html::{html, html_file} now allow @event=event_handler attributes.
Added `counter-no-macros` example.
2024-12-06 09:53:57 +00:00
9939564b37
dynatos_html::{html, html_file} now allow expressions inside of text using %{expr}%. 2024-12-06 09:24:01 +00:00
f3d792f544
Improved formatting in counter example. 2024-12-06 08:40:55 +00:00
2e7e29c5eb
Removed useless dynamic attribute in counter example. 2024-12-06 08:38:47 +00:00
b15fe1d602
Fixed dynatos_html::{html, html_file} not allowing multiple attributes. 2024-12-06 08:35:02 +00:00
ecef6804dd
dynatos_html::{html, html_file} now allow specifying element expressions with <:attr>. 2024-12-06 08:30:30 +00:00
dfceb11dbf
Replaced tl with a custom html parser. 2024-12-06 08:21:55 +00:00
6d45814a23
dynatos_html::{html, html_file} now unbox the value if only a single exists. 2024-12-03 07:44:31 +00:00
4626ccebf9
dynatos_html::{html, html_file} now allow specifying attribute expressions with :attr="value" or :attr (shorthand for :attr="attr"). 2024-12-03 07:02:12 +00:00
7880485ab9
Re-formatted all files with new rustfmt rules for GATs. 2024-12-03 06:53:39 +00:00
45a7e59a0c
Added better error message when failing to push new history. 2024-12-03 06:53:14 +00:00
73e57a15a1
Added dynatos_html::{html, html_file} macros. 2024-12-03 06:37:23 +00:00
f9376bd7c8
Added dynatos_html::{text, comment}. 2024-12-03 05:40:34 +00:00
df9d973af3
Added dynatos_html::ElementWithInnerHtml. 2024-12-03 04:24:55 +00:00
352467ba41
Updated to rustc 1.83.0-nightly (18b1161ec 2024-10-02). 2024-11-30 23:15:01 +00:00
f2fd544f6f
Updated to rustc 1.81.0-nightly (9c3bc805d 2024-06-27). 2024-07-03 20:24:36 +01:00
f6de2142fe
Added cloned proc macro to dynatos-util. 2024-03-21 19:47:43 +00:00
10e2d228a0
Fixed Trigger triggering multiple times in debug mode.
This was due to `Subscriber` taking it's defined location into it's hash, which made it possible for the same effect to be registered twice, so long as it had a different defined location.
2024-03-18 21:00:46 +00:00
1727e0bb9b
Triggers and Effectss now store their definition location in debug mode. 2024-03-18 21:00:41 +00:00
7ccef1671a
Fixed Memo triggering effects twice. 2024-03-17 08:14:55 +00:00
905ec803e9
Added Subscriber type for Trigger implementation. 2024-03-17 07:54:39 +00:00
ad7c7c0629
Added Element[With]DynChildren. 2024-03-17 07:47:40 +00:00
26b50b4eb3
Query[Array]Signal now memo the query value to avoid unnecessary triggers. 2024-03-17 07:45:54 +00:00
c6b33db6e5
Simplified Memo update checking. 2024-03-16 09:15:29 +00:00
bbbd6f8ac9
Derived and Memo now inline the inner Signal used. 2024-03-16 09:03:34 +00:00
7a07fbc0de
Added NodeAddChildren. 2024-03-14 08:38:30 +00:00
9a9cf2b9ed
Added dynatos_reactive::Memo. 2024-03-14 08:13:44 +00:00
b908a17237
Fixed panic when updating Query[Array]Signal. 2024-03-12 05:57:08 +00:00
d62e45e587
Added #[track_caller] attribute to several signal functions. 2024-03-12 05:45:56 +00:00
5aef275f55
Replaced usages of Rc<OnceCell<_>> with a static OnceCell in effect tests. 2024-03-11 01:57:34 +00:00
873b5f9325
Replaced remaining miscellaneous usages of thread_local! with #[thread_local]. 2024-03-11 01:51:29 +00:00
4d7b3cd7ec
dynatos_title now uses #[thread_local] for the title stack. 2024-03-11 01:50:00 +00:00
d31148bb4d
Fixed initial page title being lost due to mistake in dynatos_title. 2024-03-11 01:45:15 +00:00
805e5fd445
Added warning for lint clippy::std_instead_of_core. 2024-03-11 01:41:56 +00:00
81bd0c9239
Added warning for many more clippy lints. 2024-03-11 01:32:17 +00:00