feat: notifications rework
This commit is contained in:
parent
b6e7d98b72
commit
ffa8713ee4
77 changed files with 2281 additions and 3269 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import { ApolloProvider } from '@apollo/react-hooks'
|
||||
import CssBaseline from '@material-ui/core/CssBaseline'
|
||||
import {
|
||||
StylesProvider,
|
||||
|
|
@ -5,13 +6,12 @@ import {
|
|||
MuiThemeProvider,
|
||||
makeStyles
|
||||
} from '@material-ui/core/styles'
|
||||
import ApolloClient from 'apollo-boost'
|
||||
import { setAutoFreeze } from 'immer'
|
||||
import { create } from 'jss'
|
||||
import extendJss from 'jss-plugin-extend'
|
||||
import React from 'react'
|
||||
import { BrowserRouter as Router } from 'react-router-dom'
|
||||
import ApolloClient from 'apollo-boost'
|
||||
import { ApolloProvider } from '@apollo/react-hooks'
|
||||
|
||||
import Header from './components/Header'
|
||||
import { tree, Routes } from './routing/routes'
|
||||
|
|
@ -19,8 +19,23 @@ import global from './styling/global'
|
|||
import theme from './styling/theme'
|
||||
import { backgroundColor, mainWidth } from './styling/variables'
|
||||
|
||||
const defaultOptions = {
|
||||
watchQuery: {
|
||||
fetchPolicy: 'no-cache',
|
||||
errorPolicy: 'ignore'
|
||||
},
|
||||
query: {
|
||||
fetchPolicy: 'no-cache',
|
||||
errorPolicy: 'all'
|
||||
},
|
||||
mutate: {
|
||||
errorPolicy: 'all'
|
||||
}
|
||||
}
|
||||
|
||||
const client = new ApolloClient({
|
||||
credentials: 'include',
|
||||
defaultOptions,
|
||||
uri:
|
||||
process.env.NODE_ENV === 'development'
|
||||
? 'https://localhost:8070/graphql/'
|
||||
|
|
@ -29,7 +44,7 @@ const client = new ApolloClient({
|
|||
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
const whyDidYouRender = require('@welldone-software/why-did-you-render')
|
||||
whyDidYouRender(React, { include: [/Logs/] })
|
||||
whyDidYouRender(React)
|
||||
}
|
||||
|
||||
// disable immer autofreeze for performance
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue