Steps to reproduce:
Open the reproduction
Open the browser console
When the project starts it will errors with:
Uncaught (in promise) DOMException: Failed to execute 'put' on 'IDBObjectStore': #<Object> could not be cloned.
This is happening because IndexedDB cannot serialize and persist a Proxy object which is
pagination
in this case.But...
If you click on "Next" button the pagination changes from
{"page":1,"size":5}
to{"page":2,"size":5}
and IndexedDB persists the object with no issues!Even stranger: if you click on the "Previous" button it changes from
page:2
topage:1
and the error is here again!
Why the first page is a Proxy object and the following pages not?