Skip to content

Commit

Permalink
Next.js + Strapi - Filters With React Query
Browse files Browse the repository at this point in the history
  • Loading branch information
Doric Ivan committed Feb 1, 2021
1 parent 1787036 commit 4b4de81
Show file tree
Hide file tree
Showing 4 changed files with 411 additions and 1 deletion.
290 changes: 290 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"prop-types": "^15.7.2",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-query": "^3.6.0",
"react-select": "^4.0.2",
"reflexbox": "^4.0.6"
}
}
7 changes: 6 additions & 1 deletion pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import ContextWrapper from 'components/ContextWrapper'
import { appWithTranslation } from '../i18n'
import Router from 'next/router'
import { parseCookies } from 'nookies'
import {QueryClientProvider, QueryClient } from 'react-query'

const queryClient = new QueryClient()


import SEO from '../next-seo.config'
Expand All @@ -24,7 +27,9 @@ function MyApp({ Component, pageProps, navigation }) {
<ContextWrapper navigation={navigation}>
<Header />
</ContextWrapper>
<Component {...pageProps} />
<QueryClientProvider client={queryClient}>
<Component {...pageProps} />
</QueryClientProvider>
</ThemeProvider>
</>
)
Expand Down
Loading

0 comments on commit 4b4de81

Please sign in to comment.