We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It gets stuck on the Client.history(channel) and doesn't continue in the generator function to the final line.
Client.history(channel)
Saga
export const loadChat = async channel => { if (channel) { await Client.history(channel); } }; function* setChannels(action: ReturnType<typeof setChannelsAction>) { const { channels } = action.payload; yield call( loadChat, channels.find(...) ); yield put(setChannelGroupsAction(channelGroups)); }
Test
return expectSaga(setChannelsSaga, setChannels({ channels, channelGroups })) .withState(defaultState) .call(loadChat, channels[2]) .put(setChannelGroupsAction(channelGroups)) .run();
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It gets stuck on the
Client.history(channel)
and doesn't continue in the generator function to the final line.Saga
Test
The text was updated successfully, but these errors were encountered: