From ce68b6ee9a66edd464eadec0607ca3e08016da90 Mon Sep 17 00:00:00 2001 From: Marielle Manlulu Date: Tue, 9 Jan 2024 15:29:06 -0500 Subject: [PATCH] docs: update code sample When working on https://github.com/Brightspace/parent-portal-ui/pull/1302, I noticed that the code sample is outdated since the function was renamed from `dedupe` to `fetchDedupe`. Would like to quickly fix it :) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1a7aea1..a852f50 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ This will import the `auth` middleware Install the `dedupe` middleware to d2lfetch via the `use` function and then start making your requests. ```js -d2lfetch.use({name: 'dedupe' fn: dedupe}); +d2lfetch.use({name: 'dedupe' fn: fetchDedupe}); const response = await d2lfetch.fetch( new Request('http://example.com/api/someentity/') );