You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typeMyPublisher = egui::cache::FramePublisher<String,u32>;fnmain() -> eframe::Result{
eframe::run_simple_native("Example", eframe::NativeOptions::default(), |ctx, _| {let key = String::from("key");let value = ctx.memory_mut(|m| m.caches.cache::<MyPublisher>().get(&key).copied());println!("value: {value:?}");
ctx.memory_mut(|m| m.caches.cache::<MyPublisher>().set(key,0));// If I comment out the following code, everything will be fine.
ctx.show_viewport_immediate(
egui::ViewportId::from_hash_of("ExampleViewport"),Default::default(),
|_, _| {},);})}
Expected behavior
Even if immediate viewport is displayed, the cache should work properly.
Desktop (please complete the following information):
OS: Windows 11
Version: 23H2
The text was updated successfully, but these errors were encountered:
Describe the bug
Cache works well in general, but when you have an immediate viewport, it will return None.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Even if immediate viewport is displayed, the cache should work properly.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: