satisfactorymodding / smr-frontend

Next generation Satisfactory Modding Repository (SMR) frontend
https://satisfactorymodding.github.io/smr-frontend/main/
GNU General Public License v3.0
6 stars 24 forks source link

fix: pagination reactivity and total pages being 0 during fetches #97

Closed mircearoata closed 1 year ago

mircearoata commented 1 year ago

During the framework upgrade and replacing some writables with reactive properties, the updated properties were not bound to.

With the changes to urql, query store data is undefined during fetching, so totals could not be simply computed variables set to the query data count value. They are now variables and only updated when the data is defined.