Files

19 lines
391 B
Swift
Raw Permalink Normal View History

2025-08-08 10:49:36 +08:00
//
// RoomReducer.swift
// TUIRoomKit
//
// Created by jeremiawang on 2024/8/19.
//
import Foundation
let roomReducer = Reducer<RoomInfo>(
ReduceOn(RoomActions.updateRoomState, reduce: { state, action in
state = action.payload
state.isEnteredRoom = true
}),
ReduceOn(RoomActions.clearRoomState, reduce: { state, action in
state = RoomInfo()
})
)