The refresh flag is toggled from the debug header, and several components check it to decide when to pull data, but fetchData in DataContext just sets refresh back to false without actually coordinating any fetches. It would be cleaner to either centralize the refresh behavior (have fetchData call all the relevant APIs) or drop fetchData entirely and have components own their own polling/refresh logic.