Hello guys, I have a problem where my shopify section is not re-rendering when I add changes. I read about about shopify:section:load event but when I add it, js is not executing at all. For example:
<script>
jQuery(document).on('shopify:section:load', function(event) {
console.log('hello');
});
</script>
This should work but nothing is logged in my console.
First I thought it’s maybe a jquery problem but when I add
console.log(jQuery().jquery);
outside of event, it’s showing correct jquery version in console.
Any Thoughts?