1.1.1 - Account logout bug fix
parent
21db221f8a
commit
6465663550
|
@ -36,4 +36,5 @@ All tests in the package can be executed by running: `npm test`.
|
||||||
|
|
||||||
1.0.0 - Package initialization
|
1.0.0 - Package initialization
|
||||||
1.0.1 - Added useTuitioClient default options
|
1.0.1 - Added useTuitioClient default options
|
||||||
1.1.0 - In this version, the account logout method and the latest changes published by Tuitio were implemented.
|
1.1.0 - In this version, the account logout method and the latest changes published by Tuitio were implemented
|
||||||
|
1.1.1 - Account logout bug fix
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "@flare/tuitio-client-react",
|
"name": "@flare/tuitio-client-react",
|
||||||
"version": "1.1.0",
|
"version": "1.1.1",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@flare/tuitio-client-react",
|
"name": "@flare/tuitio-client-react",
|
||||||
"version": "1.1.0",
|
"version": "1.1.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@flare/tuitio-client": "^1.1.0"
|
"@flare/tuitio-client": "^1.1.0"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@flare/tuitio-client-react",
|
"name": "@flare/tuitio-client-react",
|
||||||
"version": "1.1.0",
|
"version": "1.1.1",
|
||||||
"description": "Tuitio client react is an npm package written in typescript that facilitates the integration of a react application with Tuitio.",
|
"description": "Tuitio client react is an npm package written in typescript that facilitates the integration of a react application with Tuitio.",
|
||||||
"main": "./dist/cjs/index.js",
|
"main": "./dist/cjs/index.js",
|
||||||
"module": "./dist/esm/index.js",
|
"module": "./dist/esm/index.js",
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
// Copyright (c) 2023 Tudor Stanciu
|
// Copyright (c) 2023 Tudor Stanciu
|
||||||
|
|
||||||
|
import { Dispatch } from "react";
|
||||||
|
import { fetch } from "@flare/tuitio-client";
|
||||||
import { initialState } from "./initialState";
|
import { initialState } from "./initialState";
|
||||||
import type { TuitioReactState, TuitioDispatchActions } from "./types";
|
import type { TuitioReactState, TuitioDispatchActions } from "./types";
|
||||||
import { Dispatch } from "react";
|
|
||||||
|
|
||||||
export const reducer = (state: TuitioReactState = initialState, action: any): TuitioReactState => {
|
export const reducer = (state: TuitioReactState = initialState, action: any): TuitioReactState => {
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
|
@ -20,7 +21,7 @@ export const reducer = (state: TuitioReactState = initialState, action: any): Tu
|
||||||
case "onLogoutSuccess": {
|
case "onLogoutSuccess": {
|
||||||
const { configuration } = state;
|
const { configuration } = state;
|
||||||
return {
|
return {
|
||||||
...initialState,
|
auth: { ...fetch() },
|
||||||
configuration
|
configuration
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue