refactor(web): replace pkg react-query with tanstack/react-query (#868)

* refactor: move to tanstack/react-query and fix cache

* refactor(releases): move to tanstack/react-query

* refactor(logs): move to tanstack/react-query

* refactor(base): move to tanstack/react-query

* refactor(base): move to tanstack/react-query

* refactor(dashboard): move to tanstack/react-query

* refactor(auth): move to tanstack/react-query

* refactor(filters): move to tanstack/react-query

* refactor(settings): move to tanstack/react-query

* chore(pkg): add tanstack/react-query

* refactor(filters): move to tanstack/react-query

* refactor: move to tanstack/react-query

* refactor: invalidate queries

* chore(pkg): remove old react-query

* chore: change imports to root prefixes

* build: remove needs web from test

* set enableReinitialize to true to fix formik caching issues

* fix all property for apiKeys const

* fix toast when enabling/disabling feed

---------

Co-authored-by: martylukyy <35452459+martylukyy@users.noreply.github.com>
This commit is contained in:
ze0s 2023-04-27 21:26:27 +02:00 committed by GitHub
parent 0be92bef65
commit 6e5385a490
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
54 changed files with 1101 additions and 1117 deletions

View file

@ -1,4 +1,4 @@
import { MultiSelectOption } from "@/components/inputs/select";
import { MultiSelectOption } from "@components/inputs/select";
export const resolutions = [
"2160p",

View file

@ -1,13 +1,13 @@
import { BrowserRouter, Route, Routes } from "react-router-dom";
import { Login } from "../screens/auth/login";
import { Onboarding } from "../screens/auth/onboarding";
import Base from "../screens/Base";
import { Dashboard } from "../screens/dashboard";
import { FilterDetails, Filters } from "../screens/filters";
import { Logs } from "../screens/Logs";
import { Releases } from "../screens/releases";
import Settings from "../screens/Settings";
import { Login } from "@screens/auth/login";
import { Onboarding } from "@screens/auth/onboarding";
import Base from "@screens/Base";
import { Dashboard } from "@screens/dashboard";
import { FilterDetails, Filters } from "@screens/filters";
import { Logs } from "@screens/Logs";
import { Releases } from "@screens/releases";
import Settings from "@screens/Settings";
import {
APISettings,
ApplicationSettings,
@ -18,11 +18,11 @@ import {
LogSettings,
NotificationSettings,
ReleaseSettings
} from "../screens/settings/index";
import { RegexPlayground } from "../screens/settings/RegexPlayground";
import { NotFound } from "@/components/alerts/NotFound";
} from "@screens/settings/index";
import { RegexPlayground } from "@screens/settings/RegexPlayground";
import { NotFound } from "@components/alerts/NotFound";
import { baseUrl } from "../utils";
import { baseUrl } from "@utils";
export const LocalRouter = ({ isLoggedIn }: { isLoggedIn: boolean }) => (
<BrowserRouter basename={baseUrl()}>