Skip to content

Commit

Permalink
there's one usage here as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ranile committed Aug 14, 2023
1 parent 1f5fa82 commit 0229ac9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ where

#[doc(hidden)]
pub fn use_prepared_state_with_suspension<T, D, F, U>(
f: F,
deps: D,
f: F,
) -> impl Hook<Output = SuspensionResult<Option<Rc<T>>>>
where
D: Serialize + DeserializeOwned + PartialEq + 'static,
Expand Down
4 changes: 2 additions & 2 deletions tools/benchmark-ssr/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ async fn bench_concurrent_task() -> Duration {
#[function_component]
fn Comp() -> HtmlResult {
let _state = use_prepared_state!(
(),
async move |_| -> () {
sleep(Duration::from_secs(1)).await;
},
()
}
)?;

Ok(Html::default())
Expand Down

0 comments on commit 0229ac9

Please sign in to comment.