++ If press DELETE or BACKSPACE and is blank description, delete the Todos.
- fix: if offline, doesn't save to cache?? if I refresh page, the data disappear - ++ field to the percent progress - fix: Refreshing 2 times the array todos.. because there is a filter
This commit is contained in:
@@ -86,7 +86,7 @@ export let idbKeyval = (() => {
|
||||
async setdata(table, value) {
|
||||
let req;
|
||||
|
||||
console.log('setdata', table, value)
|
||||
// console.log('setdata', table, value)
|
||||
await withStore('readwrite', table, store => {
|
||||
req = store.put(value);
|
||||
});
|
||||
@@ -103,7 +103,7 @@ export let idbKeyval = (() => {
|
||||
});
|
||||
},
|
||||
async clearalldata(table) {
|
||||
console.log('clearalldata', table)
|
||||
// console.log('clearalldata', table)
|
||||
return await withStore('readwrite', table, store => {
|
||||
store.clear();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user