2021-11-16 21:13:20 +05:30
|
|
|
import './wdyr';
|
2022-03-22 16:22:41 +05:30
|
|
|
import './ReactI18';
|
2021-08-26 11:50:47 +05:30
|
|
|
|
|
|
|
|
import AppRoutes from 'AppRoutes';
|
|
|
|
|
import React from 'react';
|
|
|
|
|
import ReactDOM from 'react-dom';
|
2022-04-07 10:48:09 +05:30
|
|
|
import { QueryClient, QueryClientProvider } from 'react-query';
|
2022-06-27 16:33:50 +05:30
|
|
|
import { ReactQueryDevtools } from 'react-query/devtools';
|
2021-08-26 11:50:47 +05:30
|
|
|
import { Provider } from 'react-redux';
|
2021-12-02 18:36:30 +05:30
|
|
|
import reportWebVitals from 'reportWebVitals';
|
2021-08-26 11:50:47 +05:30
|
|
|
import store from 'store';
|
2021-01-03 18:15:44 +05:30
|
|
|
|
2021-12-02 18:36:30 +05:30
|
|
|
if (process.env.NODE_ENV === 'development') {
|
|
|
|
|
reportWebVitals(console.log);
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-08 02:12:54 +05:30
|
|
|
const queryClient = new QueryClient({
|
|
|
|
|
defaultOptions: {
|
|
|
|
|
queries: {
|
|
|
|
|
refetchOnWindowFocus: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
});
|
2022-04-07 10:48:09 +05:30
|
|
|
|
2021-01-03 18:15:44 +05:30
|
|
|
ReactDOM.render(
|
2022-04-07 10:48:09 +05:30
|
|
|
<QueryClientProvider client={queryClient}>
|
|
|
|
|
<Provider store={store}>
|
|
|
|
|
<React.StrictMode>
|
|
|
|
|
<AppRoutes />
|
|
|
|
|
</React.StrictMode>
|
|
|
|
|
</Provider>
|
2022-06-27 16:33:50 +05:30
|
|
|
{process.env.NODE_ENV === 'development' && <ReactQueryDevtools />}
|
2022-04-07 10:48:09 +05:30
|
|
|
</QueryClientProvider>,
|
2021-08-26 11:50:47 +05:30
|
|
|
document.querySelector('#root'),
|
2021-01-18 02:18:49 +05:30
|
|
|
);
|