From 3508fd2125c51c9aa0c3cc26f96a575fbf73fe7c Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 23 May 2021 18:20:33 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=94=20Mark=20fetchData=20functions=20a?= =?UTF-8?q?s=20deprecated?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nest_frontend/components/providers/GlobalServer.js | 1 + nest_frontend/components/providers/GlobalUser.js | 1 + 2 files changed, 2 insertions(+) diff --git a/nest_frontend/components/providers/GlobalServer.js b/nest_frontend/components/providers/GlobalServer.js index 0250e99..5677c7f 100644 --- a/nest_frontend/components/providers/GlobalServer.js +++ b/nest_frontend/components/providers/GlobalServer.js @@ -20,6 +20,7 @@ export default function GlobalServer({ children }) { /** * Fetch JSON data from the API. * + * @deprecated use {@link useBackendRequest} instead * @param method - The method to use. * @param path - The path to request data at (ex. `/api/repositories`) * @param body - The body of the request (it will be automatically converted to JSON. diff --git a/nest_frontend/components/providers/GlobalUser.js b/nest_frontend/components/providers/GlobalUser.js index 8c2d798..06e251c 100644 --- a/nest_frontend/components/providers/GlobalUser.js +++ b/nest_frontend/components/providers/GlobalUser.js @@ -20,6 +20,7 @@ export default function GlobalUser({ children }) { * * Requires an user to be logged in! * + * @deprecated use {@link useBackendRequest} instead * @param method - The HTTP method to use. * @param path - The path to request data at (ex. `/api/repositories`) * @param body - The body of the request (it will be automatically converted to JSON.