Skip to content

Commit

Permalink
fix: re-export use_fetch function
Browse files Browse the repository at this point in the history
  • Loading branch information
HoKim98 committed Jul 17, 2024
1 parent 481c3c9 commit a93e9a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/cassette-core/src/net/gateway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use yew::prelude::*;
use super::fetch::{FetchRequest, FetchState};

#[hook]
fn use_fetch<Req, Res, Url>(
pub fn use_fetch<Req, Res, Url>(
request: impl 'static + FnOnce() -> FetchRequest<Url, Req>,
) -> UseStateHandle<FetchState<Res>>
where
Expand Down
4 changes: 2 additions & 2 deletions crates/cassette/src/hooks/gateway.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#[cfg(not(feature = "examples"))]
use cassette_core::net::{
fetch::FetchRequestWithoutBody,
gateway::{use_fetch, Method},
fetch::{FetchRequestWithoutBody, Method},
gateway::use_fetch,
};
use cassette_core::{
cassette::{Cassette, CassetteRef},
Expand Down

0 comments on commit a93e9a2

Please sign in to comment.