Reset Twitch.features on window.reload()

Hi there!

After I reset my window in a button on my extension.

const [twitch, setTwitch] = useState(window.Twitch.ext)


const handleRefresh = () => {
    window.location.reload(true);
};

The window.Twitch.ext.features.isBitsEnabled is false, until I do a full reset by right-clicking and selecting “reload”.
Screen Shot 2024-10-13 at 2.44.20 PM

Is there anyway I can reload the features values to their actual values during a ‘hot-reload’ of the extension.

No.

Twitch extensions are not supposed to “navigate” which includes “reloading” of any kind (unless done by the helper/supervisor).

To reload you have to reload the whole twitch page (or the popout if working on a panel extension or other popout view)