react-indexed-db icon indicating copy to clipboard operation
react-indexed-db copied to clipboard

`add()` doc. need fix

Open andythebreaker opened this issue 1 year ago • 1 comments

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);
      }
    );

andythebreaker avatar Jul 17 '23 17:07 andythebreaker

Yup, Ive also run into this same and came here to report this issue and found it open.

zehawki avatar Dec 10 '23 11:12 zehawki