Skip to content

Commit

Permalink
fix: update cacheMiddleware function name (#101)
Browse files Browse the repository at this point in the history
Noticed a small typo!
  • Loading branch information
damassi committed May 30, 2020
1 parent 0a678f6 commit 488944f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewares/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type CacheMiddlewareOpts = {|
cacheErrors?: boolean,
|};

export default function queryMiddleware(opts?: CacheMiddlewareOpts): Middleware {
export default function cacheMiddleware(opts?: CacheMiddlewareOpts): Middleware {
const { size, ttl, onInit, allowMutations, allowFormData, clearOnMutation, cacheErrors } =
opts || {};
const cache = new QueryResponseCache({
Expand Down

0 comments on commit 488944f

Please sign in to comment.