This is an edge case of using <include> and <temaplte> on Baidu. As I mentioned in https://github.com/airbnb/goji-js/issues/177 , recursive <template> can work on Baidu even with some <include> inside it. Therefore we use children0.swan and components.swan to render GojiJS.
But during refactoring, I found a bug that if you use the same <include> in the page, the rendering stoped at second <include> and no error message was logged.
Here is a reproduction demo: swanide://fragment/407c04e45eba1df09c91e759f4133d8f1669474098159
page -------> include ------> template--------> include (fails to render)
^ |
| |
| |
| |
+------------------+
To solve the issue, you can paste the content of <include> into page's .swan, although it may cost more bundle size.
This is an edge case of using
<include>
and<temaplte>
on Baidu. As I mentioned in https://github.com/airbnb/goji-js/issues/177 , recursive<template>
can work on Baidu even with some<include>
inside it. Therefore we usechildren0.swan
andcomponents.swan
to render GojiJS.But during refactoring, I found a bug that if you use the same
<include>
in the page, the rendering stoped at second<include>
and no error message was logged.Here is a reproduction demo: swanide://fragment/407c04e45eba1df09c91e759f4133d8f1669474098159
To solve the issue, you can paste the content of
<include>
into page's.swan
, although it may cost more bundle size.