Export signals from dioxus prelude

This commit is contained in:
Jonathan Kelley 2024-01-10 16:57:21 -08:00
parent 8e08c736df
commit 3bde429619
No known key found for this signature in database
GPG key ID: 1FBB50F7EB0A08BE
2 changed files with 9 additions and 1 deletions

View file

@ -16,13 +16,15 @@ dioxus-html = { workspace = true, optional = true }
dioxus-core-macro = { workspace = true, optional = true }
dioxus-hooks = { workspace = true, optional = true }
dioxus-rsx = { workspace = true, optional = true }
dioxus-signals = { workspace = true, optional = true }
manganis = { git = "https://github.com/DioxusLabs/collect-assets" }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
dioxus-hot-reload = { workspace = true, optional = true }
[features]
default = ["macro", "hooks", "html", "hot-reload"]
default = ["macro", "html", "hot-reload", "signals"]
signals = ["dioxus-signals"]
macro = ["dioxus-core-macro", "dioxus-rsx"]
html = ["dioxus-html"]
hooks = ["dioxus-hooks"]

View file

@ -7,6 +7,9 @@ pub use dioxus_core as core;
#[cfg(feature = "hooks")]
pub use dioxus_hooks as hooks;
#[cfg(feature = "signals")]
pub use dioxus_signals as signals;
pub mod events {
#[cfg(feature = "html")]
pub use dioxus_html::prelude::*;
@ -28,6 +31,9 @@ pub mod prelude {
#[cfg(feature = "hooks")]
pub use crate::hooks::*;
#[cfg(feature = "signals")]
pub use dioxus_signals::*;
pub use dioxus_core::prelude::*;
#[cfg(feature = "macro")]