Persist suggestions when filtering feed

environments/review-feed-sugge-h6y0xq/deployments/487
Justin 2 years ago
parent 2f465fbc14
commit c664844e3c

@ -142,7 +142,7 @@ const replaceHomeTimeline = (
{ maxId }: Record<string, any> = {},
) => (dispatch: AppDispatch, _getState: () => RootState) => {
dispatch({ type: TIMELINE_REPLACE, accountId });
dispatch(expandHomeTimeline({ accountId, maxId }));
dispatch(expandHomeTimeline({ accountId, maxId }, () => dispatch(insertSuggestionsIntoTimeline())));
};
const expandTimeline = (timelineId: string, path: string, params: Record<string, any> = {}, done = noOp) =>

Loading…
Cancel
Save