Skip to content

Commit

Permalink
Merge pull request #11 from AlexanderProd/master
Browse files Browse the repository at this point in the history
fix typos in README.md
  • Loading branch information
yornaath authored Dec 18, 2023
2 parents 233d54f + 342c71e commit b2f0a0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ This will batch all calls made within a certain time frame UP to a certain max b
```ts
const batcher = batshit.create({
...,
scheduler: maxBatchSizeScheduler({
scheduler: windowedFiniteBatchScheduler({
windowMs: 10,
maxBatchSize: 100,
}),
Expand Down Expand Up @@ -166,7 +166,7 @@ const batcher = batshit.create({
});
```

### Fethcing with needed context
### Fetching with needed context

If the batch fetcher needs some context like an sdk or client to make its fetching you can use a memoizer to make sure that you reuse a batcher for the given context in the hook calls.

Expand Down

1 comment on commit b2f0a0d

@vercel
Copy link

@vercel vercel bot commented on b2f0a0d Dec 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.