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
"Don't misbehave" error never shows up in Starcounter apps, because it shows up only when there are 0 templates in the imported document.
However, in case of a Starcounter app, each app creates its own HTML view that should have a <template>, so we need to count the number of templates in every IMPORTED-TEMPLATE-SCOPE.
For of these two reasons, a wrong response that comes from the server for a request http://localhost:8080/sc/htmlmerger?Products_0=%2FProducts%2FStarcounter.Authorization.Unauthorized.html:
<template><templateis="declarative-shadow-dom"><style>:host{display:block}</style></template></template><imported-template-scopescope="Products_0">404 Page Not Found</imported-template-scope><template><templateis="declarative-shadow-dom"><slot></slot></template></template>
is not seen as wrong by imported-template.
In result, the developer can see an empty screen and does not know what happened:
The text was updated successfully, but these errors were encountered:
"Don't misbehave" error never shows up in Starcounter apps, because it shows up only when there are 0 templates in the imported document.
However, in case of a Starcounter app, each app creates its own HTML view that should have a
<template>
, so we need to count the number of templates in everyIMPORTED-TEMPLATE-SCOPE
.Secondly, Starcounter's own htmlmerger inserts two
<templates>
by its own (see lines 344 and 367): https://github.com/Starcounter/level1/blob/0f8258d36f95558596c5744b54e300bc72568bd7/src/Starcounter.Apps.JsonPatch/SystemHandlers.cs#L344-L367For of these two reasons, a wrong response that comes from the server for a request
http://localhost:8080/sc/htmlmerger?Products_0=%2FProducts%2FStarcounter.Authorization.Unauthorized.html
:is not seen as wrong by
imported-template
.In result, the developer can see an empty screen and does not know what happened:
The text was updated successfully, but these errors were encountered: