{"action":"created","issue":{"url":"https://api.github.com/repos/TahaSh/vue-paginate/issues/96","repository_url":"https://api.github.com/repos/TahaSh/vue-paginate","labels_url":"https://api.github.com/repos/TahaSh/vue-paginate/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/TahaSh/vue-paginate/issues/96/comments","events_url":"https://api.github.com/repos/TahaSh/vue-paginate/issues/96/events","html_url":"https://github.com/TahaSh/vue-paginate/issues/96","id":324681797,"node_id":"MDU6SXNzdWUzMjQ2ODE3OTc=","number":96,"title":"If item array is empty, newly added item append to 2nd page","user":{"login":"rassemdev","id":34296924,"node_id":"MDQ6VXNlcjM0Mjk2OTI0","avatar_url":"https://avatars3.githubusercontent.com/u/34296924?v=4","gravatar_id":"","url":"https://api.github.com/users/rassemdev","html_url":"https://github.com/rassemdev","followers_url":"https://api.github.com/users/rassemdev/followers","following_url":"https://api.github.com/users/rassemdev/following{/other_user}","gists_url":"https://api.github.com/users/rassemdev/gists{/gist_id}","starred_url":"https://api.github.com/users/rassemdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rassemdev/subscriptions","organizations_url":"https://api.github.com/users/rassemdev/orgs","repos_url":"https://api.github.com/users/rassemdev/repos","events_url":"https://api.github.com/users/rassemdev/events{/privacy}","received_events_url":"https://api.github.com/users/rassemdev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-20T04:07:34Z","updated_at":"2018-06-24T18:02:34Z","closed_at":null,"author_association":"NONE","body":"I have implemented your library, its working good. but the problem is, if i remove all item from the array then add a new one, it append to 2nd page. Instead of first page. \r\n\r\n```\r\n<paginate name=\"Orders\" :list=\"Orders\" class=\"paginate-list\">\r\n\t<div class=\"row\" v-for=\"(row, index) in paginated('Orders')\">\r\n\t\t<div class=\"col-12 col-sm-12 col-md-4 secondColumn pickupSecondColumn\">\r\n\t\t\t<div>\r\n\t\t\t\t<p class=\"name\">{{row.title}}</p>\r\n\t\t\t\t<p class=\"name\">Color: {{row.color}}</p>\r\n\t\t\t\t<p class=\"name\">Cantidad: {{row.quantity}}</p>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n</paginate>\r\n<paginate-links for=\"Orders\" :simple=\"{\r\n        next: 'Next »',\r\n        prev: '« Back'\r\n      }\"></paginate-links>\r\n\r\nexport default {\r\n data() {\r\n  //all state\r\n },\r\nmethods: {\r\n afterloading() {\r\n  let singleProductRoute = \"routeLInk\";\r\n   axios.get(singleProductRoute, {\r\n\tparams: {\r\n\t\tid: ID\r\n\t}\r\n   }).then(function(response) {\r\n\tconsole.log(response.data);\r\n\tlet singleProductValues = response.data;\r\n\touterThis.Orders.push(response.data);\r\n   });\r\n}\r\n}\r\n```\r\n\r\nhere is the array object:\r\n{name: \"Comprade Mercado\", user: \" \", title: \" \", color: \" \", quantity: \" \", …}"},"comment":{"url":"https://api.github.com/repos/TahaSh/vue-paginate/issues/comments/399775281","html_url":"https://github.com/TahaSh/vue-paginate/issues/96#issuecomment-399775281","issue_url":"https://api.github.com/repos/TahaSh/vue-paginate/issues/96","id":399775281,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTc3NTI4MQ==","user":{"login":"farmanp","id":3365887,"node_id":"MDQ6VXNlcjMzNjU4ODc=","avatar_url":"https://avatars1.githubusercontent.com/u/3365887?v=4","gravatar_id":"","url":"https://api.github.com/users/farmanp","html_url":"https://github.com/farmanp","followers_url":"https://api.github.com/users/farmanp/followers","following_url":"https://api.github.com/users/farmanp/following{/other_user}","gists_url":"https://api.github.com/users/farmanp/gists{/gist_id}","starred_url":"https://api.github.com/users/farmanp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/farmanp/subscriptions","organizations_url":"https://api.github.com/users/farmanp/orgs","repos_url":"https://api.github.com/users/farmanp/repos","events_url":"https://api.github.com/users/farmanp/events{/privacy}","received_events_url":"https://api.github.com/users/farmanp/received_events","type":"User","site_admin":false},"created_at":"2018-06-24T18:02:34Z","updated_at":"2018-06-24T18:02:34Z","author_association":"NONE","body":"```\r\n<paginate name=\"emails\" :per=\"5\" :list=\"filteredList\">\r\n          <div v-if=\"filteredList.length\">\r\n            <div v-for=\"em in paginated('emails')\">\r\n            \r\n              <b-list-group-item @click=\"getFullEmail(em)\">\r\n              <strong>SUBJECT: </strong>{{ em.email.subject }} <br>\r\n              <strong>BODY: </strong>{{ em.email.body | truncate(50) }} <br>\r\n              <strong>BY: </strong>{{ em.user }} <br>\r\n\r\n              <div v-if=\"currentUser\">\r\n                <div v-if=\"currentUser.name == em.user\">\r\n                  <v-btn @click=\"deleteEmail(em)\" color=\"red\">Delete</v-btn>\r\n                </div>\r\n              </div>\r\n\r\n              </b-list-group-item>\r\n            </div>\r\n          </div> \r\n        </paginate>\r\n```\r\nI tried what was recommended, and it still doesn't work - only works if my user isn't signed in (which is really odd) "}}
{"actor":{"display_login":"farmanp"}}