Skip to content

Commit b88a933

Browse files
authored
Update README.md
1 parent 2c60a0d commit b88a933

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ fn main() {
9898
#[allow(non_snake_case)]
9999
#[component]
100100
fn ListComp(list_n: usize) -> Element {
101-
// Subscribe the state using the `DataChannel::ListN(list_n)` channel, where `list_n` is index of this element
101+
// Subscribe the state using the `DataChannel::SpecificListItemUpdate(list_n)` channel, where `list_n` is index of this element
102102
// Whenever a mutation (in this case just this component) occurs only
103103
// this component will rerun as it is the only one that is subscribed to this channel
104104
let mut radio = use_radio::<Data, DataChannel>(DataChannel::SpecificListItemUpdate(list_n));
@@ -130,4 +130,4 @@ The idea of `dioxus-radio` originally started when I was working in [`freya-edit
130130

131131
## License
132132

133-
MIT License
133+
MIT License

0 commit comments

Comments
 (0)