mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 23:53:13 +09:00
Refactor to use subsribers
This commit is contained in:
16 files changed
+120
-707
No files matched your search
@@ -38,9 +38,9 @@ export function useModList() {
|
||||
});
|
||||
}
|
||||
|
||||
control.onModUpdate(null, updateHandler);
|
||||
control.modUpdate.subscribe(updateHandler);
|
||||
return () => {
|
||||
control.offModUpdate(null, updateHandler);
|
||||
control.modUpdate.unsubscribe(updateHandler);
|
||||
};
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in new issue
Block a user