Skip to content
New issue

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

Add a helper class to simplify the usage of the BatchedAbortSignals. #1103

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

2Pacalypse-
Copy link
Member

I think I got all of our usages with this? Ended up being fewer than I initially thought.

Also, while searching for these usages, I've deleted a few unused states from the user's reducer.

Closes #1101

I think I got all of our usages with this? Ended up being fewer than I
initially thought.

Also, while searching for these usages, I've deleted a few unused states
from the user's reducer.
export function getChatUserProfile(
channelId: SbChannelId,
targetId: SbUserId,
spec: RequestHandlingSpec<void>,
): ThunkAction {
return abortableThunk(spec, async (dispatch, getStore) => {
const requestCoalescer = new RequestCoalescer()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't work, you're making a new coalescer for every request so it will coalesce nothing. It needs to be global

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants