fix(ui): Fix releases + issues pagination
diff --git a/static/app/components/asyncComponent.tsx b/static/app/components/asyncComponent.tsx
index 4ed9632eade038..5bc0a8151714b2 100644
--- a/static/app/components/asyncComponent.tsx
+++ b/static/app/components/asyncComponent.tsx
@@ -247,7 +247,7 @@ export default class AsyncComponent<
       let query = (params && params.query) || {};
       // If paginate option then pass entire `query` object to API call
       // It should only be expecting `query.cursor` for pagination
-      if (options.paginate || locationQuery.cursor) {
+      if ((options.paginate || locationQuery.cursor) && !options.disableEntireQuery) {
         query = {...locationQuery, ...query};
       }
 
diff --git a/static/app/components/issues/groupList.tsx b/static/app/components/issues/groupList.tsx
index f366cfe2cf30c5..45589fd06f43dd 100644
--- a/static/app/components/issues/groupList.tsx
+++ b/static/app/components/issues/groupList.tsx
@@ -154,7 +154,7 @@ class GroupList extends React.Component<Props, State> {
   }
 
   handleCursorChange(
-    cursor: string,
+    cursor: string | undefined,
     path: string,
     query: Record<string, any>,
     pageDiff: number
@@ -163,19 +163,18 @@ class GroupList extends React.Component<Props, State> {
     let nextPage: number | undefined = isNaN(queryPageInt)
       ? pageDiff
       : queryPageInt + pageDiff;
-    let nextCursor: string | undefined = cursor;
 
     // unset cursor and page when we navigate back to the first page
     // also reset cursor if somehow the previous button is enabled on
     // first page and user attempts to go backwards
     if (nextPage <= 0) {
-      nextCursor = undefined;
+      cursor = undefined;
       nextPage = undefined;
     }
 
     browserHistory.push({
       pathname: path,
-      query: {...query, cursor: nextCursor},
+      query: {...query, cursor, page: nextPage},
     });
   }
 
diff --git a/static/app/views/releases/list/index.tsx b/static/app/views/releases/list/index.tsx
index 5ebe322843c18a..94a507f4b8f005 100644
--- a/static/app/views/releases/list/index.tsx
+++ b/static/app/views/releases/list/index.tsx
@@ -85,7 +85,12 @@ class ReleasesList extends AsyncView<Props, State> {
     };
 
     const endpoints: ReturnType<AsyncView['getEndpoints']> = [
-      ['releases', `/organizations/${organization.slug}/releases/`, {query}],
+      [
+        'releases',
+        `/organizations/${organization.slug}/releases/`,
+        {query},
+        {disableEntireQuery: true},
+      ],
     ];
 
     return endpoints;

- fixes pagination of issues on release detail page
- fixes pagination on releases page when the statsPeriod is different than 14d (https://app.asana.com/0/1168903747282474/1192198721871433/f)