Metafield Update Data without Page Refresh on Theme App Extension Liquid

Is it possible to get updated metafield data without refresh data? Suppose i have a metafield which is initially coming as null (window.config.mycustomdata = {{metafields}} . I’m implemented a websocket. If websocket returns ‘Page_Refresh’ i want to get that specific metafield update data without page reload and set it to mycustomdata is it possible? Any api? any fetch api approach or storefront api?

Comment (0)

You’ll be in good company