From 3a10468f7b558cecde39c58476d9d25f7d3f8a5f Mon Sep 17 00:00:00 2001 From: Vishnu Vanneri <73824004+vva-odoo@users.noreply.github.com> Date: Wed, 6 Jan 2021 13:13:33 +0530 Subject: [PATCH] Update todoapp mount issue (#817) APP gets error while running "ReferenceError: mount is not defined" because of mount not defined with "Component" --- doc/learning/tutorial_todoapp.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/learning/tutorial_todoapp.md b/doc/learning/tutorial_todoapp.md index aec1f8c9..cb660d6f 100644 --- a/doc/learning/tutorial_todoapp.md +++ b/doc/learning/tutorial_todoapp.md @@ -545,7 +545,7 @@ application), since it involves extracting all task related code out of the components. Here is the new content of the `app.js` file: ```js -const { Component, Store } = owl; +const { Component, Store, mount } = owl; const { xml } = owl.tags; const { whenReady } = owl.utils; const { useRef, useDispatch, useStore } = owl.hooks; @@ -808,7 +808,7 @@ For reference, here is the final code: ```js (function () { - const { Component, Store } = owl; + const { Component, Store, mount } = owl; const { xml } = owl.tags; const { whenReady } = owl.utils; const { useRef, useDispatch, useState, useStore } = owl.hooks;