PromucFlow_constructor/app/client/src/actions/pageVisibilityActions.ts
Satish Gandham 83538ad74d
feat: Bundle optimization and first load improvements (#21667)
Co-authored-by: Ivan Akulov <mail@iamakulov.com>
Co-authored-by: Satish Gandham <hello@satishgandham.com>
Co-authored-by: Ivan Akulov <iamakulov@outlook.com>
Co-authored-by: Aishwarya UR <aishwarya@appsmith.com>
Co-authored-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
Co-authored-by: somangshu <somangshu.goswami1508@gmail.com>
2023-05-11 10:56:03 +05:30

9 lines
337 B
TypeScript

import { appLevelWebsocketWriteEvent } from "./websocketActions";
import { APP_LEVEL_SOCKET_EVENTS } from "sagas/WebsocketSagas/socketEvents";
export const pageVisibilityAppEvent = (visibility: DocumentVisibilityState) =>
appLevelWebsocketWriteEvent({
type: APP_LEVEL_SOCKET_EVENTS.PAGE_VISIBILITY,
payload: visibility,
});