add boardToAddTo state so that result can be added to board when generation is complete

This commit is contained in:
Mary Hipp
2023-06-16 14:40:12 -04:00
committed by psychedelicious
parent 4defb92105
commit 7a2d3f628a
6 changed files with 23 additions and 6 deletions

View File

@ -53,14 +53,14 @@ export const appSocketDisconnected = createAction<BaseSocketPayload>(
* Do not use. Only for use in middleware.
*/
export const socketSubscribed = createAction<
BaseSocketPayload & { sessionId: string }
BaseSocketPayload & { sessionId: string; boardId: string | undefined }
>('socket/socketSubscribed');
/**
* App-level Socket.IO Subscribed
*/
export const appSocketSubscribed = createAction<
BaseSocketPayload & { sessionId: string }
BaseSocketPayload & { sessionId: string; boardId: string | undefined }
>('socket/appSocketSubscribed');
/**

View File

@ -85,6 +85,7 @@ export const socketMiddleware = () => {
socketSubscribed({
sessionId: sessionId,
timestamp: getTimestamp(),
boardId: getState().boards.selectedBoardId,
})
);
}

View File

@ -44,6 +44,7 @@ export const setEventListeners = (arg: SetEventListenersArg) => {
socketSubscribed({
sessionId,
timestamp: getTimestamp(),
boardId: getState().boards.selectedBoardId,
})
);
}