Skip to content

Commit a0e2d3e

Browse files
committed
Updated tutorial to beta.5, updated CHANGES
1 parent 24d53cd commit a0e2d3e

File tree

4 files changed

+195
-220
lines changed

4 files changed

+195
-220
lines changed

CHANGES.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11
<!-- markdownlint-configure-file { "no-duplicate-heading": { "siblings_only": true } } -->
2+
<!-- markdownlint-disable-next-line first-line-h1 -->
3+
## 0.1.0-beta.5 - 2022-10-18
4+
5+
### Added
6+
7+
* Components with "props"!
8+
* `DomElement::from_parts` for unit-testing purposes
9+
10+
### Changed
11+
12+
* Improved refresh algorithm (internal)
13+
* Simplified context system (internal)
14+
* Refactored callbacks mechanism (internal)
15+
16+
### Removed
17+
18+
* `RefCell`
219

320
## 0.1.0-beta.4 - 2022-10-02
421

crates/vertigo/src/computed/value.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,6 @@ impl<T> Clone for Value<T> {
6363
}
6464
}
6565

66-
impl<T> PartialEq for Value<T> {
67-
fn eq(&self, other: &Self) -> bool {
68-
self.inner.id == other.inner.id
69-
}
70-
}
71-
7266
impl<T: Clone + 'static> Value<T> {
7367
pub fn new(value: T) -> Value<T> {
7468
let deps = get_driver().inner.dependencies.clone();
@@ -83,7 +77,8 @@ impl<T: Clone + 'static> Value<T> {
8377
}
8478
}
8579

86-
/// Create a value that is connected to a generator, where `value` parameter is a starting value, and `create` function takes care of updating it.
80+
/// Create a value that is connected to a generator, where `value` parameter is a starting value,
81+
/// and `create` function takes care of updating it.
8782
///
8883
/// See [game of life](../src/vertigo_demo/app/game_of_life/mod.rs.html#54) example.
8984
pub fn with_connect<F>(value: T, create: F) -> Computed<T>

crates/vertigo/src/html_macro/dom.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,9 @@ impl<T: ToString + Clone + PartialEq + 'static> EmbedDom for Value<T> {
6868
self.to_computed().embed()
6969
}
7070
}
71+
72+
impl<T: ToString + Clone + PartialEq + 'static> EmbedDom for &Value<T> {
73+
fn embed(self) -> DomNodeFragment {
74+
self.to_computed().embed()
75+
}
76+
}

0 commit comments

Comments
 (0)