mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 16:23:12 +09:00
Use filtered subscriptions to save data
This commit is contained in:
1 parent
ea144863f9
commit
38d5fdfdba
4 files changed
+67
-16
No files matched your search
@@ -852,6 +852,13 @@ export default function CanvasMinimapPage() {
|
||||
loadSurfaceForceData();
|
||||
}, []);
|
||||
|
||||
// Keep the minimap subscription filters in sync with current selection
|
||||
useEffect(() => {
|
||||
const plugin = control.plugins.get("minimap") as import("./index").WebPlugin;
|
||||
if (!plugin) { return; }
|
||||
plugin.setInstanceSurfaceFilter(selectedInstance, selectedSurface || null);
|
||||
}, [control, selectedInstance, selectedSurface]);
|
||||
|
||||
// Set up keyboard and mouse event listeners (one-time setup)
|
||||
useEffect(() => {
|
||||
const isTypingInInput = (): boolean => {
|
||||
|
||||
Reference in new issue
Block a user