mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
chore: start with a default sandbox, to avoid panics in tests
This commit is contained in:
parent
dac4589194
commit
ddb596feb5
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ type ArenaMap = SlotMap<NodeId, Box<dyn Any + Send + Sync>>;
|
|||
static MAP: OnceLock<RwLock<ArenaMap>> = OnceLock::new();
|
||||
#[cfg(feature = "sandboxed-arenas")]
|
||||
thread_local! {
|
||||
pub(crate) static MAP: RefCell<Option<Arc<RwLock<ArenaMap>>>> = RefCell::new(None);
|
||||
pub(crate) static MAP: RefCell<Option<Arc<RwLock<ArenaMap>>>> = RefCell::new(Some(Default::default()));
|
||||
}
|
||||
|
||||
impl Arena {
|
||||
|
|
Loading…
Reference in a new issue