rocicorp / replicache-nextjs

Generic Replicache backend for Next.js
Apache License 2.0
21 stars 8 forks source link

Update use-replicache.ts #14

Closed graup closed 2 years ago

graup commented 2 years ago

Removed unnecessary code.

These two keywords do absolutely nothing:

  1. an async function with no await keywords inside behaves exactly as a non-async function.
  2. arrow functions with braces and no return statement already return undefined, even without using void.

If I'm wrong and these keywords do make a difference, I'd be glad to learn something new!

graup commented 2 years ago

I appreciate your explanations!