Skip to content

Commit

Permalink
Add initial recoil configs
Browse files Browse the repository at this point in the history
  • Loading branch information
eliezerbasubi committed Apr 29, 2022
1 parent d277977 commit 663b897
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"graphql-request": "^4.2.0",
"next": "12.1.5",
"react": "18.1.0",
"react-dom": "18.1.0"
"react-dom": "18.1.0",
"recoil": "^0.7.2"
},
"devDependencies": {
"@types/node": "17.0.29",
Expand Down
7 changes: 6 additions & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ import type { AppProps } from "next/app";

import "antd/dist/antd.min.css";
import "../styles/globals.css";
import { RecoilRoot } from "recoil";

const MyApp = ({ Component, pageProps }: AppProps) => {
return <Component {...pageProps} />;
return (
<RecoilRoot>
<Component {...pageProps} />
</RecoilRoot>
);
};

export default MyApp;
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1820,6 +1820,11 @@ graphql@^16.4.0:
resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.4.0.tgz#bb10b1b4683045dedcb67000eb4ad134a36c59e6"
integrity sha512-tYDNcRvKCcfHREZYje3v33NSrSD/ZpbWWdPtBtUUuXx9NCo/2QDxYzNqCnMvfsrnbwRpEHMovVrPu/ERoLrIRg==

[email protected]:
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, has-bigints@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa"
Expand Down Expand Up @@ -3101,6 +3106,13 @@ readdirp@~3.6.0:
dependencies:
picomatch "^2.2.1"

recoil@^0.7.2:
version "0.7.2"
resolved "https://registry.yarnpkg.com/recoil/-/recoil-0.7.2.tgz#37aafc9e0674abae639263354a11c910e71bf78a"
integrity sha512-OT4pI7FOUHcIoRtjsL5Lqq+lFFzQfir4MIbUkqyJ3nqv3WfBP1pHepyurqTsK5gw+T+I2R8+uOD28yH+Lg5o4g==
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"
Expand Down

0 comments on commit 663b897

Please sign in to comment.