Skip to content

Commit

Permalink
chore: uninstall react-helmet and install react-helmet-async
Browse files Browse the repository at this point in the history
  • Loading branch information
TeXmeijin committed Nov 7, 2021
1 parent dbbcee2 commit 283ef20
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 31 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-error-boundary": "^3.1.3",
"react-helmet": "^6.1.0",
"react-helmet-async": "^1.1.2",
"react-hook-form": "^7.7.1",
"react-query": "^3.18.1",
"react-query-auth": "^1.0.0",
Expand Down Expand Up @@ -98,7 +98,6 @@
"@types/jsonwebtoken": "^8.5.1",
"@types/lodash": "^4.14.170",
"@types/marked": "^2.0.3",
"@types/react-helmet": "^6.1.1",
"@typescript-eslint/eslint-plugin": "^4.25.0",
"@typescript-eslint/parser": "^4.25.0",
"autoprefixer": "^9",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Head/Head.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Helmet } from 'react-helmet';
import { Helmet } from 'react-helmet-async';

type HeadProps = {
title?: string;
Expand Down
19 changes: 11 additions & 8 deletions src/providers/app.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as React from 'react';
import { ErrorBoundary } from 'react-error-boundary';
import { HelmetProvider } from 'react-helmet-async';
import { QueryClientProvider } from 'react-query';
import { ReactQueryDevtools } from 'react-query/devtools';
import { BrowserRouter as Router } from 'react-router-dom';
Expand Down Expand Up @@ -31,19 +32,21 @@ export const AppProvider = ({ children }: AppProviderProps) => {
return (
<React.Suspense
fallback={
<div className="h-screen w-screen flex items-center justify-center">
<div className="flex items-center justify-center w-screen h-screen">
<Spinner size="xl" />
</div>
}
>
<ErrorBoundary FallbackComponent={ErrorFallback}>
<QueryClientProvider client={queryClient}>
{process.env.NODE_ENV !== 'test' && <ReactQueryDevtools />}
<Notifications />
<AuthProvider>
<Router>{children}</Router>
</AuthProvider>
</QueryClientProvider>
<HelmetProvider>
<QueryClientProvider client={queryClient}>
{process.env.NODE_ENV !== 'test' && <ReactQueryDevtools />}
<Notifications />
<AuthProvider>
<Router>{children}</Router>
</AuthProvider>
</QueryClientProvider>
</HelmetProvider>
</ErrorBoundary>
</React.Suspense>
);
Expand Down
29 changes: 9 additions & 20 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3301,13 +3301,6 @@
dependencies:
"@types/react" "*"

"@types/react-helmet@^6.1.1":
version "6.1.1"
resolved "https://registry.yarnpkg.com/@types/react-helmet/-/react-helmet-6.1.1.tgz#4fde22cbcaa1b461642e1d719cc6162d95acb110"
integrity sha512-VmSCMz6jp/06DABoY60vQa++h1YFt0PfAI23llxBJHbowqFgLUL0dhS1AQeVPNqYfRp9LAfokrfWACTNeobOrg==
dependencies:
"@types/react" "*"

"@types/[email protected]":
version "11.0.5"
resolved "https://registry.yarnpkg.com/@types/react-syntax-highlighter/-/react-syntax-highlighter-11.0.5.tgz#0d546261b4021e1f9d85b50401c0a42acb106087"
Expand Down Expand Up @@ -13689,7 +13682,7 @@ react-error-overlay@^6.0.9:
resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.0.9.tgz#3c743010c9359608c375ecd6bc76f35d93995b0a"
integrity sha512-nQTTcUu+ATDbrSD1BZHr5kgSD4oF8OFjxun8uAaL8RwPBacGBNPf/yAuVVdx17N8XNzRDMrZ9XcKZHCjPW+9ew==

react-fast-compare@^3.0.1, react-fast-compare@^3.1.1, react-fast-compare@^3.2.0:
react-fast-compare@^3.0.1, react-fast-compare@^3.2.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/react-fast-compare/-/react-fast-compare-3.2.0.tgz#641a9da81b6a6320f270e89724fb45a0b39e43bb"
integrity sha512-rtGImPZ0YyLrscKI9xTpV8psd6I8VAtjKCzQDlzyDvqJA8XOW78TXYQwNRNd8g8JZnDu8q9Fu/1v4HPAVwVdHA==
Expand All @@ -13705,15 +13698,16 @@ react-helmet-async@^1.0.7:
react-fast-compare "^3.2.0"
shallowequal "^1.1.0"

react-helmet@^6.1.0:
version "6.1.0"
resolved "https://registry.yarnpkg.com/react-helmet/-/react-helmet-6.1.0.tgz#a750d5165cb13cf213e44747502652e794468726"
integrity sha512-4uMzEY9nlDlgxr61NL3XbKRy1hEkXmKNXhjbAIOVw5vcFrsdYbH2FEwcNyWvWinl103nXgzYNlns9ca+8kFiWw==
react-helmet-async@^1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/react-helmet-async/-/react-helmet-async-1.1.2.tgz#653b7e6bbfdd239c5dcd6b8df2811c7a363b8334"
integrity sha512-LTTzDDkyIleT/JJ6T/uqx7Y8qi1EuPPSiJawQY/nHHz0h7SPDT6HxP1YDDQx/fzcVxCqpWEEMS3QdrSrNkJYhg==
dependencies:
object-assign "^4.1.1"
"@babel/runtime" "^7.12.5"
invariant "^2.2.4"
prop-types "^15.7.2"
react-fast-compare "^3.1.1"
react-side-effect "^2.1.0"
react-fast-compare "^3.2.0"
shallowequal "^1.1.0"

react-hook-form@^7.7.1:
version "7.8.4"
Expand Down Expand Up @@ -13869,11 +13863,6 @@ react-shallow-renderer@^16.13.1:
object-assign "^4.1.1"
react-is "^16.12.0 || ^17.0.0"

react-side-effect@^2.1.0:
version "2.1.1"
resolved "https://registry.yarnpkg.com/react-side-effect/-/react-side-effect-2.1.1.tgz#66c5701c3e7560ab4822a4ee2742dee215d72eb3"
integrity sha512-2FoTQzRNTncBVtnzxFOk2mCpcfxQpenBMbk5kSVBg5UcPqV9fRbgY2zhb7GTWWOlpFmAxhClBDlIq8Rsubz1yQ==

react-sizeme@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/react-sizeme/-/react-sizeme-3.0.1.tgz#4d12f4244e0e6a0fb97253e7af0314dc7c83a5a0"
Expand Down

0 comments on commit 283ef20

Please sign in to comment.