Setting rootviewcontoller in AppDelagate after deleting SceneDelegate

I deleted SceneDelegate.swift and deleted related entry from .plist file. Since my project doesn’t support iPad, I won’t need any SceneDelegate thing. Am I right? I use SwiftUI so there is also no Storyboard Now in AppDelegate file var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { self.window = UIWindow(frame:…

Details

Nested dispatch function does not get update props

app.js const mapStateToProps = (state) => { return {home:state} } const mapDispatchToProps = (dispatch) => { return { guestLogin: (data)=>{dispatch(guestLogin(data)).then(()=>{ dispatch(initiateTrans(stateProps.home)) })}, }; } const mergeProps = (stateProps, dispatchProps, ownProps) => { return Object.assign({}, ownProps, stateProps, dispatchProps,{ initiateTrans: () => dispatchProps.initiateTrans(stateProps.home), }) } Action.js export const guestLogin= (state)=>{ var data={ ’email’:state.email, ‘name’:state.name, ‘phone_number’:state.ph_number, ‘phone_code’:state.country_code }…

Details