Fixed selected nav item. Added lazy loading for WS client to resolve token issue. Added some filtering to jobs list.
This commit is contained in:
@@ -30,6 +30,7 @@ class AppContainer extends Component {
|
||||
const wsLink = new WebSocketLink({
|
||||
uri: process.env.REACT_APP_GRAPHQL_ENDPOINT_WS,
|
||||
options: {
|
||||
lazy: true,
|
||||
reconnect: true,
|
||||
connectionParams: () => {
|
||||
const token = localStorage.getItem("token");
|
||||
@@ -49,7 +50,11 @@ class AppContainer extends Component {
|
||||
({ query }) => {
|
||||
const definition = getMainDefinition(query);
|
||||
console.log(
|
||||
"##Intercepted GQL Transaction##" + definition.operation,
|
||||
"##Intercepted GQL Transaction : " +
|
||||
definition.operation +
|
||||
"|" +
|
||||
definition.name.value +
|
||||
"##",
|
||||
query
|
||||
);
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user