mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-30 18:09:40 +05:00
chore: disable unrelated eslint rules
This commit is contained in:
parent
ff11a90a5e
commit
733e138233
20 changed files with 43 additions and 16 deletions
23
app/App.tsx
23
app/App.tsx
|
@ -18,21 +18,24 @@ export const App = (props) => {
|
|||
const [currentVersion, setCurrentVersion] = useState("");
|
||||
const [previousVersions, setPreviousVersions] = useState([]);
|
||||
|
||||
async function _checkVersion() {
|
||||
const res = await fetch("/api/version");
|
||||
const data = await res.json();
|
||||
|
||||
if (data.version !== preferencesStore.params.version) {
|
||||
setShowChangelog(true);
|
||||
setCurrentVersion(data.version);
|
||||
setPreviousVersions(data.previous);
|
||||
}
|
||||
}
|
||||
useEffect(() => {
|
||||
async function _checkVersion() {
|
||||
const res = await fetch("/api/version");
|
||||
const data = await res.json();
|
||||
|
||||
if (data.version !== preferencesStore.params.version) {
|
||||
setShowChangelog(true);
|
||||
setCurrentVersion(data.version);
|
||||
setPreviousVersions(data.previous);
|
||||
}
|
||||
}
|
||||
|
||||
if (preferencesStore._hasHydrated) {
|
||||
_checkVersion();
|
||||
userStore.checkAuth();
|
||||
}
|
||||
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [preferencesStore._hasHydrated]);
|
||||
|
||||
if (!preferencesStore._hasHydrated && !userStore._hasHydrated) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue