Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jetli committed Mar 5, 2024
1 parent db2b9c4 commit 0f01abc
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions crates/yew-hooks/src/hooks/use_visible.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
use wasm_bindgen::{
closure::Closure,
JsCast,
};
use web_sys::{IntersectionObserver, IntersectionObserverEntry};
use yew::{NodeRef, functional::*};
use crate::use_effect_once;

use wasm_bindgen::{closure::Closure, JsCast};
use web_sys::{IntersectionObserver, IntersectionObserverEntry};
use yew::{functional::*, NodeRef};

#[hook]
/// Check if an element is visible. Internally, it uses an [`IntersectionObserver`] to receive
Expand Down

0 comments on commit 0f01abc

Please sign in to comment.