You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in v18 i am trying to mount the owl component using the "rootApp" strategy shown in the main.js file of the demo folder.
here the relevant code:
const rootApp = new owl.App(Spreadsheet, { props: { model } });
rootApp.addTemplates(templates);
rootApp.mount(document.body, {});
here the error i get:
No active component (a hook function should only be called in 'setup')
i have tried to move the 2 hooks "useRef("spreadsheet");" and "useSpreadsheetRect();" in Spreadsheet component inside the setup() function but still get this error.
this same code use to work in v16 ...
Notice that everything works fine in development mode, but does not in the build version ... any hint this might be ?
The text was updated successfully, but these errors were encountered:
in v18 i am trying to mount the owl component using the "rootApp" strategy shown in the main.js file of the demo folder.
here the relevant code:
here the error i get:
No active component (a hook function should only be called in 'setup')
i have tried to move the 2 hooks "useRef("spreadsheet");" and "useSpreadsheetRect();" in Spreadsheet component inside the setup() function but still get this error.
this same code use to work in v16 ...
Notice that everything works fine in development mode, but does not in the build version ... any hint this might be ?
The text was updated successfully, but these errors were encountered: