diff --git a/common/changes/@itwin/cra-template-web-viewer/mike-remove-strict-mode_2024-11-18-21-41.json b/common/changes/@itwin/cra-template-web-viewer/mike-remove-strict-mode_2024-11-18-21-41.json new file mode 100644 index 00000000..05d3b43f --- /dev/null +++ b/common/changes/@itwin/cra-template-web-viewer/mike-remove-strict-mode_2024-11-18-21-41.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/cra-template-web-viewer", + "comment": "Remove React.StrictMode Wrapper", + "type": "patch" + } + ], + "packageName": "@itwin/cra-template-web-viewer" +} \ No newline at end of file diff --git a/packages/apps/desktop-viewer-test/.env b/packages/apps/desktop-viewer-test/.env index 1e344ebc..97aa7319 100644 --- a/packages/apps/desktop-viewer-test/.env +++ b/packages/apps/desktop-viewer-test/.env @@ -1,5 +1,5 @@ # ---- Configuration ---- -ITWIN_VIEWER_SCOPE ="imodelaccess:read offline_access imodels:read realitydata:read itwins:read" +ITWIN_VIEWER_SCOPE ="itwin-platform offline_access" ITWIN_VIEWER_CLIENT_ID="" ITWIN_VIEWER_REDIRECT_URI="" ITWIN_VIEWER_ISSUER_URL="https://ims.bentley.com" diff --git a/packages/apps/desktop-viewer-test/src/frontend/index.tsx b/packages/apps/desktop-viewer-test/src/frontend/index.tsx index d3cb1bc8..9fe8f3b9 100644 --- a/packages/apps/desktop-viewer-test/src/frontend/index.tsx +++ b/packages/apps/desktop-viewer-test/src/frontend/index.tsx @@ -27,11 +27,7 @@ const viewerFrontendMain = async () => { document.documentElement.classList.add(`iui-theme-dark`); - root.render( - - - - ); + root.render(); }; viewerFrontendMain(); // eslint-disable-line @typescript-eslint/no-floating-promises diff --git a/packages/templates/cra-template-web-viewer/template/src/index.tsx b/packages/templates/cra-template-web-viewer/template/src/index.tsx index b2aefedf..58da5fe1 100644 --- a/packages/templates/cra-template-web-viewer/template/src/index.tsx +++ b/packages/templates/cra-template-web-viewer/template/src/index.tsx @@ -44,11 +44,7 @@ const redirectUrl = new URL(process.env.IMJS_AUTH_CLIENT_REDIRECT_URI); if (redirectUrl.pathname === window.location.pathname) { Auth.handleSigninCallback().catch(console.error); } else { - root.render( - - - - ); + root.render(); } // If you want your app to work offline and load faster, you can change