You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
When setting data via a resource factory via the data middleware, the data passed it loaded into the resource but the total is not currently set.
This means that even though the data has been side-loaded, when you call getTotal, undefined will be returned.
This was working for data sets beneath the page size because the resource was making a call to the data templates read function which then set the data.
Bug
Problem
When setting data via a resource factory via the data middleware, the data passed it loaded into the resource but the
total
is not currently set.This means that even though the data has been side-loaded, when you call
getTotal
,undefined
will be returned.This was working for data sets beneath the page size because the resource was making a call to the data templates
read
function which then set the data.Example
This issue is highlighted on this sandbox: https://codesandbox.io/s/clever-tesla-erjfp
Solution
We should set the total when side-loading data via the resources
set
function.The text was updated successfully, but these errors were encountered: