Fork of Chiri for Astro for my blog
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: NeoDB cards on navigation

the3ash 3d4d40ff 66ca9061

+6 -3
+6 -3
src/components/ui/NeoDBCard.astro
··· 1 1 <script is:inline> 2 - // This script finds all NeoDB containers on the page and fetches data for each one. 3 - document.addEventListener('DOMContentLoaded', () => { 2 + function loadNeoDBCards() { 4 3 const allContainers = document.querySelectorAll('.neodb-card-container') 5 4 6 5 allContainers.forEach((container) => { ··· 200 199 renderError(container) 201 200 } 202 201 }) 203 - }) 202 + } 203 + 204 + document.addEventListener('DOMContentLoaded', loadNeoDBCards) 205 + 206 + document.addEventListener('astro:page-load', loadNeoDBCards) 204 207 </script> 205 208 206 209 <style is:inline>