WebSocket Command Channel (#2782)
This commit is contained in:
11
skyvern-frontend/src/store/useClientIdStore.ts
Normal file
11
skyvern-frontend/src/store/useClientIdStore.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { create } from "zustand";
|
||||
|
||||
type ClientIdStore = {
|
||||
clientId: string;
|
||||
};
|
||||
|
||||
const initialClientId = crypto.randomUUID();
|
||||
|
||||
export const useClientIdStore = create<ClientIdStore>(() => ({
|
||||
clientId: initialClientId,
|
||||
}));
|
||||
Reference in New Issue
Block a user