@refinedev/core 4.57.5 → 4.57.7

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@refinedev/core",
3
- "version": "4.57.5",
3
+ "version": "4.57.7",
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));