대시보드 실시간 기능 추가
This commit is contained in:
@@ -56,6 +56,7 @@ interface KisRuntimeStoreActions {
|
||||
invalidateKisVerification: () => void;
|
||||
clearKisRuntimeSession: (tradingEnv: KisTradingEnv) => void;
|
||||
getOrFetchWsConnection: () => Promise<KisWsConnection | null>;
|
||||
clearWsConnectionCache: () => void;
|
||||
setHasHydrated: (state: boolean) => void;
|
||||
}
|
||||
|
||||
@@ -224,6 +225,13 @@ export const useKisRuntimeStore = create<
|
||||
|
||||
return wsConnectionPromise;
|
||||
},
|
||||
clearWsConnectionCache: () => {
|
||||
wsConnectionPromise = null;
|
||||
set({
|
||||
wsApprovalKey: null,
|
||||
wsUrl: null,
|
||||
});
|
||||
},
|
||||
setHasHydrated: (state) => {
|
||||
set({
|
||||
_hasHydrated: state,
|
||||
|
||||
Reference in New Issue
Block a user