I had the following code (running on Backstage 1.27)
const labelTheme = useMemo(
() => (theme.palette.mode === 'dark' ? darkLabelTheme : lightLabelTheme),
[theme.palette.mode],
);
When attempting to upgrade to 1.29.2 theme.palette.mode always returns light. I'm using useTheme from @mui/material/styles as I'm using MUI v5 components.
Any idea what's changed or how to fix this?