@@ -2,7 +2,8 @@ use dioxus_core::{ScopeId, ScopeState};
use std::{
cell::{Cell, Ref, RefCell, RefMut},
collections::HashSet,
- rc::Rc, sync::Arc,
+ rc::Rc,
+ sync::Arc,
};
type ProvidedState<T> = RefCell<ProvidedStateInner<T>>;
@@ -1,7 +1,8 @@
use dioxus_core::ScopeState;
cell::{Ref, RefCell, RefMut},
/// `use_ref` is a key foundational hook for storing state in Dioxus.
@@ -4,7 +4,8 @@ use dioxus_core::prelude::*;
cell::{RefCell, RefMut},
fmt::{Debug, Display},
/// Store state between component renders.
@@ -2,7 +2,8 @@ use gloo::history::{BrowserHistory, History, HistoryListener, Location};
cell::{Cell, Ref, RefCell},
collections::{HashMap, HashSet},
use dioxus_core::ScopeId;