Skip to content

Commit

Permalink
some defaults; tag 0.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Jun 24, 2024
1 parent d6c1d2c commit 5943310
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion respo/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
10 changes: 8 additions & 2 deletions respo/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Self::Intent>;
fn detect_intent(&self) -> Option<Self::Intent> {
None
}
}

impl<T> DispatchFn<T>
Expand Down

0 comments on commit 5943310

Please sign in to comment.