chore(release): bump version to 0.0.34 and update changelog
This commit is contained in:
@@ -158,6 +158,12 @@ const createComplexActions = (set: SetState, get: GetState) => ({
|
||||
set((state: GlobalState) => ({
|
||||
...state,
|
||||
...result,
|
||||
layout: { ...state.layout, ...result?.layout },
|
||||
navigation: { ...state.navigation, ...result?.navigation },
|
||||
owner: {
|
||||
...state.owner,
|
||||
...result?.owner,
|
||||
},
|
||||
program: {
|
||||
...state.program,
|
||||
...result?.program,
|
||||
@@ -169,6 +175,10 @@ const createComplexActions = (set: SetState, get: GetState) => ({
|
||||
connected: true,
|
||||
loading: false,
|
||||
},
|
||||
user: {
|
||||
...state.user,
|
||||
...result?.user,
|
||||
},
|
||||
}));
|
||||
} catch (e) {
|
||||
set((state: GlobalState) => ({
|
||||
@@ -329,11 +339,11 @@ const setApiURL = (url: string) => {
|
||||
};
|
||||
|
||||
const getApiURL = (): string => {
|
||||
return GlobalStateStore.getState().session.apiURL;
|
||||
return GlobalStateStore.getState().session.apiURL ?? '';
|
||||
};
|
||||
|
||||
const getAuthToken = (): string => {
|
||||
return GlobalStateStore.getState().session.authToken;
|
||||
return GlobalStateStore.getState().session.authToken ?? '';
|
||||
};
|
||||
|
||||
const isLoggedIn = (): boolean => {
|
||||
@@ -346,6 +356,15 @@ const setAuthToken = (token: string) => {
|
||||
|
||||
const GetGlobalState = (): GlobalStateStoreType => {
|
||||
return GlobalStateStore.getState();
|
||||
}
|
||||
};
|
||||
|
||||
export { getApiURL, getAuthToken, GetGlobalState, GlobalStateStore, isLoggedIn, setApiURL, setAuthToken, useGlobalStateStore };
|
||||
export {
|
||||
getApiURL,
|
||||
getAuthToken,
|
||||
GetGlobalState,
|
||||
GlobalStateStore,
|
||||
isLoggedIn,
|
||||
setApiURL,
|
||||
setAuthToken,
|
||||
useGlobalStateStore,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user