I’m trying to figure out how to get my demo to hit this line: https://github.com/twitchdev/animal-facts/blob/master/src/components/App/App.js#L47. I guess I need to read over these docs: https://dev.twitch.tv/docs/extensions/reference/#twitch-extension-configuration.
Is there a separate “configuration” for broadcasters, developers, and global. For my extension?
Somehow the “developer” config segment is never set by the Go backend in main.js in the
Yes… There are three segments,
As per the docs you linked to.
As per the github repo
broadcaster segment config.
developer segment config in part by the EBS, in part via calls in
The “front end” will change the broadcaster segment happily in this example, but the developer segment is changed by the EBS.
Which is performed via this API Endpoint:
randomFactHandler() in the front end only changes the “animal” and loads the “facts” from the developer segment that the EBS uploaded.
Hope this helps.
Super helpful! I got the thing working earlier today after replacing a log of my tweaked files with clean ones from github. So awesome. Thanks!