From 46cb652ba7b5ef78ea004a070c4ee5b8ba0c0ffe Mon Sep 17 00:00:00 2001 From: nathan-pichon Date: Wed, 8 Feb 2023 17:48:32 +0100 Subject: [PATCH] chore(docs): Strapi Class - reload --- docs/docs/api/Strapi.mdx | 6 ++++++ packages/core/strapi/lib/Strapi.js | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/docs/api/Strapi.mdx b/docs/docs/api/Strapi.mdx index 6f8c677fdd..9723c56ad2 100644 --- a/docs/docs/api/Strapi.mdx +++ b/docs/docs/api/Strapi.mdx @@ -80,3 +80,9 @@ Stored paths of file system. - `true`: Everything have been loaded - `false`: There is something loading +### `strapi.reload` + +Function to reload the app. + +This function defines itself at the construction of the Strapi class. + diff --git a/packages/core/strapi/lib/Strapi.js b/packages/core/strapi/lib/Strapi.js index 303808ce30..5e66719f42 100644 --- a/packages/core/strapi/lib/Strapi.js +++ b/packages/core/strapi/lib/Strapi.js @@ -104,12 +104,6 @@ class Strapi { // Strapi state management variables this.isLoaded = false; - // TODO put this in /docs/docs/API/Strapi - /* - function to reload the app - - To define - */ this.reload = this.reload(); // Instantiate the Koa app & the HTTP server