Move activeTabId and fileMetadata reads from selector subscriptions to getState() calls inside the callback. These values were only used in the insertTools callback, not for rendering, causing unnecessary re-renders when they changed.
Move activeTabId and fileMetadata reads from selector subscriptions to getState() calls inside the callback. These values were only used in the insertTools callback, not for rendering, causing unnecessary re-renders when they changed.