Новая обработка обновлений в соответствии с новым протоколом предоставляемым SDU серверами

This commit is contained in:
RoyceDa
2026-02-12 12:19:32 +02:00
parent ccec7d9446
commit b38918cb6d
7 changed files with 270 additions and 232 deletions

View File

@@ -0,0 +1,10 @@
import { useContext } from "react";
import { UpdateContextValue, UpdateProviderContext } from "./UpdateProvider";
export function useUpdater() : UpdateContextValue {
const context = useContext(UpdateProviderContext);
if (!context) {
throw new Error("useUpdater must be used within an UpdateProvider");
}
return context;
}