Skip to content

Update issues slice to index issues instead of list them on an array #2

Description

@leandrooriente

The current implementation has an array that is cleared and repopulated every time a new list of issues comes.

We can optimize so the user won't have to load a page that was already loaded and opening an issue will only require fetching its comments.

Eg:

const store = {
  page: 1,
  pageCount: 2,
  issuesPerPage: {
    1: ['1231765'],
    2: ['898232']
  },
  issues: {
    1231765: {
      title: "Foo Issue",
      labels: []
    }, {
    898232: {
      title: "Bar Issue",
      labels: []
    }
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions