I have a Blazor WASM app and I use a template which comes with a lot of icons. The feather icons load properly on startup or if I reload any page/component, but if I try to navigate to another component without actually reloading the whole page, the icons do not load. This is how call the icons in index.html
.
<body class="app">
<script src="js/app.js"></script>
<script>
setTimeout(function () {
feather.replace();
}, 3000)
</script>
</body>
Since it is a single-paged application, it seems the icons do not persist or not passed along when a new child component replaces the old one. This is the main layout.
<div class="flex">
<SideBar />
<div class="content">
@Body
</div>
</div>