Skip to content

Commit

Permalink
Update hackernews_complete.rs (#290)
Browse files Browse the repository at this point in the history
The hackernews reader works with an immutable preview_state aswell. Why should it be mutable?
  • Loading branch information
Sarakuzoi authored Jul 9, 2024
1 parent 146ceed commit b6fed26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc_examples/hackernews_complete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async fn resolve_story(

#[component]
fn StoryListing(story: ReadOnlySignal<StoryItem>) -> Element {
let mut preview_state = consume_context::<Signal<PreviewState>>();
let preview_state = consume_context::<Signal<PreviewState>>();
let StoryItem {
title,
url,
Expand Down

0 comments on commit b6fed26

Please sign in to comment.