diff --git a/Cargo.lock b/Cargo.lock index 116b9e8..9b0bc1e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -195,7 +195,7 @@ dependencies = [ [[package]] name = "respo" -version = "0.1.6" +version = "0.1.7" dependencies = [ "cirru_parser", "js-sys", diff --git a/respo/Cargo.toml b/respo/Cargo.toml index e176807..9b0d4fe 100644 --- a/respo/Cargo.toml +++ b/respo/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "respo" -version = "0.1.6" +version = "0.1.7" edition = "2021" description = "a tiny virtual DOM library migrated from ClojureScript" license = "Apache-2.0" diff --git a/respo/src/node.rs b/respo/src/node.rs index 273eaec..ca8712e 100644 --- a/respo/src/node.rs +++ b/respo/src/node.rs @@ -190,15 +190,21 @@ pub trait RespoAction { }) } + /// builder for intent actions fn build_intent_action(op: Self::Intent) -> Self where - Self: Sized; + Self: Sized, + { + todo!("build_intent_action need to be implemented when intent({:?}) is used ", op) + } /// a builder for states change fn states_action(a: RespoUpdateState) -> Self; /// handle intent seperately since it might contain effects - fn detect_intent(&self) -> Option; + fn detect_intent(&self) -> Option { + None + } } impl DispatchFn