From 7f99810d1ef8adb42b2f4593641f6a7f1802233c Mon Sep 17 00:00:00 2001 From: Matt Date: Tue, 8 Oct 2024 22:54:16 +0200 Subject: [PATCH] docs: Typo in the readme + added inline comment --- README.md | 4 ++-- src/request-handler.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1dcb9c1..d2358d6 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@

Fast, lightweight (~3 KB gzipped) and reusable data fetching

-"fetchff" stands for "fetch fast & flexibly" +"fetchff" stands for "fetch fast & flexibly" [npm-url]: https://npmjs.org/package/fetchff [npm-image]: http://img.shields.io/npm/v/fetchff.svg @@ -22,7 +22,7 @@ Managing multitude of API connections in large Frontend Application can be compl ✅ **Immutable:** Every request has its own instance. -✅ **Isomorphic:** Comptabile with Node.js, Deno and modern browsers. +✅ **Isomorphic:** Compatible with Node.js, Deno and modern browsers. ✅ **Type Safe:** Strongly typed and written in TypeScript. diff --git a/src/request-handler.ts b/src/request-handler.ts index f61995c..d9ada6b 100644 --- a/src/request-handler.ts +++ b/src/request-handler.ts @@ -405,6 +405,7 @@ export function createRequestHandler( ); // Shallow copy to ensure basic idempotency + // Note that the refrence of the main object does not change here so it is safe in context of queue management and interceptors const requestConfig: RequestConfig = { signal: controller.signal, ...fetcherConfig,