mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-05-05 13:35:53 +00:00
replace React bunder based on webpack with Vite #952
This commit is contained in:
@@ -4,7 +4,7 @@ import { AxiosPromise } from 'axios';
|
||||
|
||||
import { extractErrorMessage } from '.';
|
||||
|
||||
import { useI18nContext } from '../i18n/i18n-react';
|
||||
import { useI18nContext } from 'i18n/i18n-react';
|
||||
|
||||
import { unstable_useBlocker as useBlocker } from 'react-router-dom';
|
||||
|
||||
@@ -26,7 +26,7 @@ export const useRest = <D>({ read, update }: RestRequestOptions<D>) => {
|
||||
const [origData, setOrigData] = useState<D>();
|
||||
const [dirtyFlags, setDirtyFlags] = useState<string[]>();
|
||||
|
||||
let blocker = useBlocker(dirtyFlags?.length !== 0);
|
||||
const blocker = useBlocker(dirtyFlags?.length !== 0);
|
||||
|
||||
const loadData = useCallback(async () => {
|
||||
setData(undefined);
|
||||
|
||||
Reference in New Issue
Block a user