73 Commits

Author SHA1 Message Date
d73233802c
Reactivity now uses a run queue to run all trigger subscribers. 2025-05-25 08:56:25 +01:00
08fc0bc9e5
QuerySignal is now controlled by a query type.
Added query types `SingleQuery` and `MultiQuery`.
Removed `QueryArraySignal`.
2025-05-23 02:09:11 +01:00
83664060b0
QuerySignal now stores a Loadable<T, T:Err> instead of Option<T>. 2025-05-20 19:40:22 +01:00
7cd337fc32
dynatos-html types are now always at least HtmlElement instead of Element. 2025-05-09 21:07:20 +01:00
28818e766f
dynatos-context is now parametrized by a world. 2025-04-19 23:51:43 +01:00
a3d54fb1e7
Moved World::{RC, IM} to it's own crate. 2025-04-19 21:51:27 +01:00
db7041df89
dynatos_reactive::*::new now always uses the default world.
Added `new_in` constructors for everything in `dynatos_reactive` to use other worlds.
2025-04-16 15:50:23 +01:00
cccc82210a
All types in dynatos-reactive now have a type parameter for their backend, instead of it being selected with features. 2025-04-16 15:34:45 +01:00
702b94db48
Updated all dependencies. 2025-04-14 17:14:08 +01:00
6a1011f0ad
Merged dynatos-reactive-async into dynatos-reactive. 2025-01-26 04:32:53 +00:00
c08b71e14f
AsyncSignal now stores the value inside of an IMut<Option<T>>.
This avoids some issues when initializing, and makes it so we can reset the value later.
2024-12-28 05:07:41 +00:00
d4497e1935
AsyncSignal now keeps track if the it's loading. 2024-12-22 18:52:52 +00:00
fc1f5b101c
Fixed AsyncSignal not being Send when sync feature was active. 2024-12-22 16:45:34 +00:00
4d193c5465
Moved dynatos-reactive's sync type alises to separate crate. 2024-12-22 16:21:32 +00:00
ac4dde9a66
Updated zutil to latest version. 2024-12-21 00:54:08 +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
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
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
dfceb11dbf
Replaced tl with a custom html parser. 2024-12-06 08:21:55 +00:00
73e57a15a1
Added dynatos_html::{html, html_file} macros. 2024-12-03 06:37:23 +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
873b5f9325
Replaced remaining miscellaneous usages of thread_local! with #[thread_local]. 2024-03-11 01:51:29 +00:00
805e5fd445
Added warning for lint clippy::std_instead_of_core. 2024-03-11 01:41:56 +00:00
c72337760a
Added SignalBorrowMut.
Fixed `AsyncSignal::update` not triggering subscribers.
2024-03-10 01:17:16 +00:00
c529a150b9
Updated tests' Cargo.lock. 2024-03-09 19:05:52 +00:00
e775a5bf7a
Replaced .with(Clone::clone) with .get_cloned(). 2024-02-20 14:19:55 +00:00
1766db806a
Location no longer implements SignalGet. 2024-02-20 13:53:39 +00:00
95d86209a2
Removed ElementDynAttr::set_dyn_attr.
Renamed `Element[With]DynAttr::{set, with}_dyn_attr_value` to `{set, with}_dyn_attr`.
2024-02-20 03:18:29 +00:00
5240c097a8
ObjectDynProp now receives anything that implements ToDynProp. 2024-02-19 08:30:18 +00:00
c4d52a8023
Extracted NodeDynText::with_dyn_text to a new trait. 2024-02-19 04:31:59 +00:00
eeecefa35d
Extracted NodeDynChild::with_dyn_child to a new trait. 2024-02-19 04:30:49 +00:00
a89ef03182
Extracted ElementDynAttr::with_* to a new trait. 2024-02-19 04:29:35 +00:00
6fc5984344
Extracted ObjectAttachEffect::with_effect to a new trait. 2024-02-19 04:26:39 +00:00
9ca824015f
Added dynatos::ObjectAttachContext. 2024-02-19 04:22:39 +00:00
2740552a53
Removed dynatos-logger. 2024-02-18 01:32:55 +00:00
5e82c61b3a
Updated to rustc 1.78.0-nightly (bccb9bbb4 2024-02-16). 2024-02-18 01:28:16 +00:00
8fd25d7d0f
dyn_text now receives anything that implements AsDynText. 2024-02-16 19:19:45 +00:00
2596868670
Removed function argument from with_event_listener.
Separated `with_event_listener` to it's own trait.
2024-02-16 17:15:44 +00:00
0cac908b61
Renamed with_text_content to with_text. 2024-02-16 17:11:10 +00:00
eab0e669c3
Added dynatos-title to manage the document title. 2024-02-16 16:44:48 +00:00
62b391d318
Renamed ObjectSet to `ObjectSetProp 2024-02-16 15:12:19 +00:00
38bbd90ac2
dyn_child now receives anything that implements AsDynNode. 2024-02-16 15:04:16 +00:00