@go-avro/avro-js 0.0.2-beta.98 → 0.0.2-beta.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -72,6 +72,7 @@ AvroQueryClient.prototype.useCreateRoute = function () {
72
72
  const { companyId } = variables;
73
73
  queryClient.invalidateQueries({ queryKey: ['routes'] });
74
74
  queryClient.invalidateQueries({ queryKey: ['jobs'] });
75
+ queryClient.invalidateQueries({ queryKey: ['job'] });
75
76
  queryClient.invalidateQueries({ queryKey: ['company', companyId] });
76
77
  },
77
78
  });
@@ -115,8 +116,10 @@ AvroQueryClient.prototype.useUpdateRoute = function () {
115
116
  },
116
117
  onSettled: (_data, _error, variables) => {
117
118
  const { routeId } = variables;
118
- queryClient.invalidateQueries({ queryKey: ['route', routeId] });
119
119
  queryClient.invalidateQueries({ queryKey: ['routes'] });
120
+ queryClient.invalidateQueries({ queryKey: ['jobs'] });
121
+ queryClient.invalidateQueries({ queryKey: ['route', routeId] });
122
+ queryClient.invalidateQueries({ queryKey: ['job'] });
120
123
  },
121
124
  });
122
125
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-avro/avro-js",
3
- "version": "0.0.2-beta.98",
3
+ "version": "0.0.2-beta.99",
4
4
  "description": "JS client for Avro backend integration.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",