fix web playwright tests

This commit is contained in:
Evan Almloff committed 2024-02-05 15:25:51 -06:00
1 parent 1bbceac4e1
commit c431429448
10 files changed
+21 -11

No files matched your search

+1 -1
View File
@@ -5,6 +5,6 @@ pub fn use_root_context<T: 'static + Clone>(new: impl FnOnce() -> T) -> T {
use_hook(|| {
try_consume_context::<T>()
// If no context is provided, create a new one at the root
.unwrap_or_else(|| provide_root_context(new()).expect(" A runtime to exist"))
.unwrap_or_else(|| provide_root_context(new()))
})
}