I am developing two different widgets in two separate folders and I am trying to sync the data in both widgets together. From Widget A, I can press a “Send” button and it will send the data from Widget A to Widget B and navigate directly to wherever Widget B is at. But I want Widget B to automatically fetch and display the data from Widget A as soon as I navigate to Widget B using
Figma.currentPage.selection = nWidgetB]
Figma.viewport.scrollAndZoomIntoView(iWidgetB]);
Right now after I have navigated to Widget B, I have to create and click on a “Fetch” button in Widget B in order to fetch and display the updated data. I have tried setting up event listener to trigger the fetch function, but I assume the Widget B is not in an “active state” when I navigate from Widget A to Widget B that why the event listener isn’t triggered. Is there any solution to solve this issue, this is my first Figma widget project and I have been trying to solve this for days, any help would be really appreciated.