From 673bb1aadd33b2aa2bc9c4557018275461fab363 Mon Sep 17 00:00:00 2001 From: rusconn Date: Mon, 21 Mar 2022 10:37:36 +0000 Subject: [PATCH] lib: add recoil --- package.json | 3 ++- src/pages/_app.tsx | 5 ++++- yarn.lock | 12 ++++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7993b45..d0e4db4 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,8 @@ "@mui/material": "^5.5.1", "next": "12.1.0", "react": "17.0.2", - "react-dom": "17.0.2" + "react-dom": "17.0.2", + "recoil": "^0.6.1" }, "devDependencies": { "@emotion/babel-plugin": "^11.7.2", diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 5c68987..a5899c8 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -2,6 +2,7 @@ import { CacheProvider, EmotionCache } from "@emotion/react"; import { CssBaseline, ThemeProvider } from "@mui/material"; import type { AppProps } from "next/app"; import Head from "next/head"; +import { RecoilRoot } from "recoil"; import { emotion, mui } from "@/data"; @@ -21,7 +22,9 @@ const MyApp = ({ Component, emotionCache = emotion.cache, pageProps }: MyAppProp - + + + ); diff --git a/yarn.lock b/yarn.lock index f6af6e2..3ae8730 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1366,6 +1366,11 @@ graceful-fs@^4.1.2: resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.9.tgz#041b05df45755e587a24942279b9d113146e1c96" integrity sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ== +hamt_plus@1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/hamt_plus/-/hamt_plus-1.0.2.tgz#e21c252968c7e33b20f6a1b094cd85787a265601" + integrity sha1-4hwlKWjH4zsg9qGwlM2FeHomVgE= + has-bigints@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.1.tgz#64fe6acb020673e3b78db035a5af69aa9d07b113" @@ -2130,6 +2135,13 @@ readdirp@~3.6.0: dependencies: picomatch "^2.2.1" +recoil@^0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/recoil/-/recoil-0.6.1.tgz#6fdf1ba6cb20b5a2e54ec4abcbdaa287e8a03fa2" + integrity sha512-J7oT3LZl2vpyFClgSUpOQjpykz84VSX/NJE/PavAtR8n7Z+whEdVBPUtwc2TEWjONeL/lJmiac2XQ+qEOQA52Q== + dependencies: + hamt_plus "1.0.2" + regenerator-runtime@^0.13.4: version "0.13.9" resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz#8925742a98ffd90814988d7566ad30ca3b263b52"