Closed SeeringPhil closed 6 months ago
The issue is here:
The hook needs to depend on the theme mode to reload.
Can be fixed as such:
const theme = useMemo(
() => createCMSDefaultTheme({ mode: modeController.mode }),
[modeController.mode]
);
This was fixed in the latest version. Thanks!
Will try to create a repro repo eventually but basically self explanatory:
When using the custom components and utilities, and not simply FirebaseCMSApp alone, clicking on the theme change button only changes the background of the scrollbars and not the rest of the application... until a page refresh!
So basically, if the user clicks on the button they need to refresh the page for the theme toggle to complete properly.