@refinedev/core 4.57.5 → 4.57.9

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.
Files changed (46) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/dist/definitions/helpers/generateDocumentTitle/index.d.cts +1 -1
  3. package/dist/definitions/helpers/generateDocumentTitle/index.d.cts.map +1 -1
  4. package/dist/definitions/helpers/generateDocumentTitle/index.d.mts +1 -1
  5. package/dist/definitions/helpers/generateDocumentTitle/index.d.mts.map +1 -1
  6. package/dist/definitions/helpers/generateDocumentTitle/index.d.ts +1 -1
  7. package/dist/definitions/helpers/generateDocumentTitle/index.d.ts.map +1 -1
  8. package/dist/definitions/helpers/safe-translate/index.d.cts +1 -1
  9. package/dist/definitions/helpers/safe-translate/index.d.cts.map +1 -1
  10. package/dist/definitions/helpers/safe-translate/index.d.mts +1 -1
  11. package/dist/definitions/helpers/safe-translate/index.d.mts.map +1 -1
  12. package/dist/definitions/helpers/safe-translate/index.d.ts +1 -1
  13. package/dist/definitions/helpers/safe-translate/index.d.ts.map +1 -1
  14. package/dist/hooks/data/useDelete.d.cts +1 -1
  15. package/dist/hooks/data/useDelete.d.mts +1 -1
  16. package/dist/hooks/data/useDelete.d.mts.map +1 -1
  17. package/dist/hooks/data/useDelete.d.ts +1 -1
  18. package/dist/hooks/data/useDeleteMany.d.cts +1 -1
  19. package/dist/hooks/data/useDeleteMany.d.mts +1 -1
  20. package/dist/hooks/data/useDeleteMany.d.mts.map +1 -1
  21. package/dist/hooks/data/useDeleteMany.d.ts +1 -1
  22. package/dist/hooks/data/useUpdate.d.cts +1 -1
  23. package/dist/hooks/data/useUpdate.d.mts +1 -1
  24. package/dist/hooks/data/useUpdate.d.mts.map +1 -1
  25. package/dist/hooks/data/useUpdate.d.ts +1 -1
  26. package/dist/hooks/data/useUpdateMany.d.cts +1 -1
  27. package/dist/hooks/data/useUpdateMany.d.mts +1 -1
  28. package/dist/hooks/data/useUpdateMany.d.mts.map +1 -1
  29. package/dist/hooks/data/useUpdateMany.d.ts +1 -1
  30. package/dist/hooks/form/types.d.cts +1 -1
  31. package/dist/hooks/form/types.d.mts +1 -1
  32. package/dist/hooks/form/types.d.mts.map +1 -1
  33. package/dist/hooks/form/types.d.ts +1 -1
  34. package/dist/index.cjs +2 -2
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.mjs +2 -2
  37. package/dist/index.mjs.map +1 -1
  38. package/package.json +1 -1
  39. package/src/definitions/helpers/generateDocumentTitle/index.ts +1 -1
  40. package/src/definitions/helpers/safe-translate/index.ts +1 -1
  41. package/src/hooks/auth/useRegister/index.ts +2 -2
  42. package/src/hooks/data/useDelete.ts +1 -1
  43. package/src/hooks/data/useDeleteMany.ts +1 -1
  44. package/src/hooks/data/useUpdate.ts +1 -1
  45. package/src/hooks/data/useUpdateMany.ts +1 -1
  46. package/src/hooks/form/types.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@refinedev/core",
3
- "version": "4.57.5",
3
+ "version": "4.57.9",
4
4
  "private": false,
5
5
  "description": "Refine is a React meta-framework for building enterprise-level, data-intensive applications rapidly with support for modern UI libraries and headless integrations.",
6
6
  "repository": {
@@ -1,4 +1,4 @@
1
- import type { useTranslate } from "@hooks/i18n";
1
+ import type { useTranslate } from "../../../hooks/i18n";
2
2
 
3
3
  import type { IResourceItem } from "../../../contexts/resource/types";
4
4
  import { safeTranslate } from "../safe-translate";
@@ -1,4 +1,4 @@
1
- import type { useTranslate } from "@hooks/i18n";
1
+ import type { useTranslate } from "../../../hooks/i18n";
2
2
 
3
3
  export const safeTranslate = (
4
4
  translate: ReturnType<typeof useTranslate>,
@@ -131,6 +131,8 @@ export function useRegister<TVariables = {}>({
131
131
  if (successNotification) {
132
132
  open?.(buildSuccessNotification(successNotification));
133
133
  }
134
+
135
+ await invalidateAuthStore();
134
136
  }
135
137
 
136
138
  if (error || !success) {
@@ -148,8 +150,6 @@ export function useRegister<TVariables = {}>({
148
150
  replace("/");
149
151
  }
150
152
  }
151
-
152
- await invalidateAuthStore();
153
153
  },
154
154
  onError: (error: any) => {
155
155
  open?.(buildNotification(error));
@@ -58,7 +58,7 @@ export type DeleteParams<TData, TError, TVariables> = {
58
58
  */
59
59
  resource: string;
60
60
  /**
61
- * [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
61
+ * [Determines when mutations are executed](/docs/advanced-tutorials/mutation-mode/)
62
62
  */
63
63
  mutationMode?: MutationMode;
64
64
  /**
@@ -59,7 +59,7 @@ export type DeleteManyParams<TData, TError, TVariables> = {
59
59
  */
60
60
  resource: string;
61
61
  /**
62
- * [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
62
+ * [Determines when mutations are executed](/docs/advanced-tutorials/mutation-mode/)
63
63
  */
64
64
  mutationMode?: MutationMode;
65
65
  /**
@@ -85,7 +85,7 @@ export type UpdateParams<TData, TError, TVariables> = {
85
85
  */
86
86
  id?: BaseKey;
87
87
  /**
88
- * [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
88
+ * [Determines when mutations are executed](/docs/advanced-tutorials/mutation-mode/)
89
89
  */
90
90
  mutationMode?: MutationMode;
91
91
  /**
@@ -87,7 +87,7 @@ export type UpdateManyParams<TData, TError, TVariables> = {
87
87
  */
88
88
  resource?: string;
89
89
  /**
90
- * [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
90
+ * [Determines when mutations are executed](/docs/advanced-tutorials/mutation-mode/)
91
91
  */
92
92
  mutationMode?: MutationMode;
93
93
  /**
@@ -118,7 +118,7 @@ type ActionFormProps<
118
118
  */
119
119
  mutationMeta?: MetaQuery;
120
120
  /**
121
- * [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
121
+ * [Determines when mutations are executed](/docs/advanced-tutorials/mutation-mode/)
122
122
  * @default `"pessimistic"*`
123
123
  */
124
124
  mutationMode?: MutationMode;