@dexteel/mesf-core 3.10.2 → 3.10.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.
package/dist/index.esm.js CHANGED
@@ -5705,19 +5705,15 @@ function Login(_a) {
5705
5705
  }
5706
5706
 
5707
5707
  function Logout() {
5708
- var _this = this;
5709
5708
  var clearUserData = useContext(AuthContext).clearUserData;
5710
5709
  var navigate = useNavigate();
5711
5710
  var _a = useSearchParams(), params = _a[0]; _a[1];
5712
- var setUserLogged = useUserContext().actions.setUserLogged;
5713
- var logout = function () { return __awaiter(_this, void 0, void 0, function () {
5714
- return __generator(this, function (_a) {
5715
- setUserLogged(false);
5716
- clearUserData();
5711
+ var logout = function () {
5712
+ clearUserData();
5713
+ setTimeout(function () {
5717
5714
  navigate("/?".concat(params.toString()));
5718
- return [2 /*return*/];
5719
- });
5720
- }); };
5715
+ }, 0);
5716
+ };
5721
5717
  useEffect(function () {
5722
5718
  logout();
5723
5719
  }, []);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexteel/mesf-core",
3
- "version": "3.10.2",
3
+ "version": "3.10.4",
4
4
  "author": "Dexteel Team",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",