mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-05-05 13:35:53 +00:00
formatting
This commit is contained in:
@@ -22,7 +22,12 @@ export const useRest = <D>({ read, update }: RestRequestOptions<D>) => {
|
||||
const [dirtyFlags, setDirtyFlags] = useState<string[]>([]);
|
||||
const blocker = useBlocker(dirtyFlags.length !== 0);
|
||||
|
||||
const { data, send: readData, update: updateData, onComplete: onReadComplete } = useRequest(read());
|
||||
const {
|
||||
data,
|
||||
send: readData,
|
||||
update: updateData,
|
||||
onComplete: onReadComplete
|
||||
} = useRequest(read());
|
||||
|
||||
const {
|
||||
loading: saving,
|
||||
|
||||
Reference in New Issue
Block a user