Filipe Rodrigues 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

48 lines
760 B
Rust

//! Reactivity for `dynatos`
// Features
#![feature(
unsize,
coerce_unsized,
unboxed_closures,
fn_traits,
test,
associated_type_bounds,
thread_local,
lint_reasons,
cfg_match
)]
// Modules
pub mod async_signal;
pub mod derived;
pub mod effect;
pub mod memo;
pub mod signal;
pub mod trigger;
pub mod with_default;
// Exports
pub use self::{
async_signal::AsyncSignal,
derived::Derived,
effect::{Effect, WeakEffect},
memo::Memo,
signal::{
Signal,
SignalBorrow,
SignalBorrowMut,
SignalGet,
SignalGetClone,
SignalGetCloned,
SignalGetCopy,
SignalReplace,
SignalSet,
SignalSetWith,
SignalUpdate,
SignalWith,
},
trigger::{IntoSubscriber, Subscriber, Trigger, WeakTrigger},
with_default::{SignalWithDefault, WithDefault},
};