Merge pull request #1213 from Demonthos/prep-sledgehammer-liveview

Prepare for Sledgehammer Bindgen in Liveview
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2023-07-18 18:10:48 -07:00
commit 1d371bf971
6 files changed
+29 -35

No files matched your search

+2 -2
View File
@@ -693,13 +693,13 @@ impl<'src> ScopeState {
raw_ref.downcast_mut::<State>()
})
.expect(
r###"
r#"
Unable to retrieve the hook that was initialized at this index.
Consult the `rules of hooks` to understand how to use hooks properly.
You likely used the hook in a conditional. Hooks rely on consistent ordering between renders.
Functions prefixed with "use" should never be called conditionally.
"###,
"#,
)
}
}