react-indexed-db
react-indexed-db copied to clipboard
`add()` doc. need fix
on npm
doc. for add(value, key)
have example code where
add({ name: 'name', email: 'email' }).then(
event => {
console.log('ID Generated: ', event.target.result);
},
error => {
console.log(error);
}
);
need to be changed to
add({ name: 'name', email: 'email' }).then(
event => {
console.log('ID Generated: ', event);
},
error => {
console.log(error);
}
);
Yup, Ive also run into this same and came here to report this issue and found it open.