mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-30 08:00:21 +00:00
Export signals from dioxus prelude
This commit is contained in:
parent
8e08c736df
commit
3bde429619
2 changed files with 9 additions and 1 deletions
|
@ -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"]
|
||||
|
|
|
@ -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")]
|
||||
|
|
Loading…
Reference in a new issue