parse: (response, options) =>
@totalRecords = parseInt(response.result_count)
@totalPages = Math.ceil(@totalRecords / @perPage)
response.data
Works perfectly on local dev env, local production env. But when deployed to production, the parse function can't get any data back(it was even not triggerd).
Played in the browser console, use collection.fetch(), it has response, but just can't pass it into my collection.