@postxl/generator 0.15.3 → 0.15.4

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.
@@ -182,7 +182,7 @@ export const ${components.modals.editComponentName} = ({
182
182
  },
183
183
  {
184
184
  async onSuccess() {
185
- await cache.${trpc.getMap.reactQueryMethod}.invalidate()
185
+ await cache.${trpc.routerName}.invalidate()
186
186
  },
187
187
  },
188
188
  ),
@@ -260,7 +260,7 @@ export const ${components.modals.deleteComponentName} = ({
260
260
  await toast.promise(
261
261
  mutation.mutateAsync(id, {
262
262
  async onSuccess() {
263
- await cache.${trpc.getMap.reactQueryMethod}.invalidate()
263
+ await cache.${trpc.routerName}.invalidate()
264
264
  },
265
265
  }),
266
266
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postxl/generator",
3
- "version": "0.15.3",
3
+ "version": "0.15.4",
4
4
  "main": "./dist/generator.js",
5
5
  "typings": "./dist/generator.d.ts",
6
6
  "bin": {