State management over route

Highlighted
New Member
1 0 0

It seems that the entire page (including the index page ) is refreshing once i route to an inner page. Is there a way/place where i can put my code(some ui+script) which is called only once throughout my shoppify website?

more context: In am building a custom chatbot, which should float throughout the website. Due to reloading after each inner route, my bot is reloading and chat data is lost. 

0 Likes