use state in async action
megadidar opened this issue · comments
Didar commented
Hello @Dimillian
Can you please tell me why state parameter in execute function is always null in async actions?
func execute(state: FluxState?, dispatch: @escaping DispatchFunction) { // state is null }
Thomas Ricouard commented
Didar commented
@Dimillian
Looks like it is AppState rather than Child State.
Working!
Thank you!
ethanyuwang commented
how do i access the child state? I tried to do something like:
state.userState
but just gets an error saying Value of type 'FluxState?' has no member 'userState'