Gatsby + Plasmic - components reload after clicking on anchor tag

Hello,
I’m experiencing an issue while working with Gatsby and Plasmic combo. I’ve created a navbar with links in the plasmic studio which point to other sections of the page via anchor links (for example #faq).
I’ve registered custom code components with async code fetching data from external API.
After clicking on the anchor link for the first time it seems that all custom components are rerendered and start to fetch data again. Clicking it for the second time makes it work as intended.