Error: Failed to execute 'put' on 'IDBObjectStore': The object store uses in-line keys and the key parameter was provided. when I try to use updateByKey
See original GitHub issueHi, I am getting error when I try to use updateByKey
let data = { tab_3: formData[‘tab_3’] } const store$ = this.dbService.updateByKey(‘transformer_safety_history’, data, 4);
I have also try different combination like
let data = { tab_3: formData[‘tab_3’], id: 4 } const store$ = this.dbService.updateByKey(‘transformer_safety_history’, data);
and when I try to use
const store$ = this.dbService.update('transformer_safety_history', data);
its removed all old data and add new data that are post
here is error log
2021-09-03T07:07:37.659Z ERROR [main.js:20081] Error: Failed to execute ‘put’ on ‘IDBObjectStore’: The object store uses in-line keys and the key parameter was provided. at http://localhost:4200/vendor.js:226422:29 at ZoneDelegate.invoke (http://localhost:4200/polyfills.js:683:26) at Object.onInvoke (http://localhost:4200/vendor.js:57382:33) at ZoneDelegate.invoke (http://localhost:4200/polyfills.js:682:52) at Zone.run (http://localhost:4200/polyfills.js:445:43) at http://localhost:4200/polyfills.js:1587:36 at ZoneDelegate.invokeTask (http://localhost:4200/polyfills.js:717:31) at Object.onInvokeTask (http://localhost:4200/vendor.js:57369:33) at ZoneDelegate.invokeTask (http://localhost:4200/polyfills.js:716:60) at Zone.runTask (http://localhost:4200/polyfills.js:489:47)
Here is version details:
“@angular/common”: “11.2.1”, “@angular/compiler”: “11.2.1”, “@angular/core”: “^11.2.1”, “ngx-indexed-db”: “^9.3.0”,
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:7 (2 by maintainers)
Top GitHub Comments
Hi everyone @DadvDadv @vahid18u @Y3kRulez @muzafarali, this issue is solved with the merge #309.
Fixed on #309