ketting icon indicating copy to clipboard operation
ketting copied to clipboard

Add a 'followAndGet' method

Open reda-alaoui opened this issue 1 year ago • 1 comments

Often, I need to use the following construct:

const username = (
  await (
    await this.ketting.follow('current-user')
  ).get()
).data.username;

I think it would be nice to have a shortcut like this:

const username = (
    await this.ketting.followAndGet('current-user')
).data.username;

What do you think? :)

reda-alaoui avatar Jun 16 '23 15:06 reda-alaoui