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