Removed commented code
This commit is contained in:
@@ -5,8 +5,6 @@ import { AUTH_TOKEN } from './constants';
|
||||
import App from './components/App';
|
||||
import { BrowserRouter } from 'react-router-dom';
|
||||
import { setContext } from '@apollo/client/link/context';
|
||||
// import * as serviceWorker from './serviceWorker';
|
||||
|
||||
import {
|
||||
ApolloProvider,
|
||||
ApolloClient,
|
||||
@@ -41,37 +39,3 @@ ReactDOM.render(
|
||||
</BrowserRouter>,
|
||||
document.getElementById('root')
|
||||
);
|
||||
// serviceWorker.unregister();
|
||||
|
||||
|
||||
|
||||
// import { split } from '@apollo/client';
|
||||
// import { WebSocketLink } from '@apollo/client/link/ws';
|
||||
// import { getMainDefinition } from '@apollo/client/utilities';
|
||||
// // import AppointmentList from './components/AppointmentList';
|
||||
|
||||
// // export default App;
|
||||
|
||||
// const wsLink = new WebSocketLink({
|
||||
// uri: `ws://localhost:4000/graphql`,
|
||||
// options: {
|
||||
// reconnect: true,
|
||||
// connectionParams: {
|
||||
// authToken: localStorage.getItem(AUTH_TOKEN)
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
|
||||
// const link = split(
|
||||
// ({ query }) => {
|
||||
// const { kind, operation } = getMainDefinition(query);
|
||||
// return (
|
||||
// kind === 'OperationDefinition' &&
|
||||
// operation === 'subscription'
|
||||
// );
|
||||
// },
|
||||
// wsLink,
|
||||
// authLink.concat(httpLink)
|
||||
// );
|
||||
|
||||
// // reportWebVitals();
|
||||
|
||||
Reference in New Issue
Block a user