You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 22, 2026. It is now read-only.
I was trying to dynamically set editor theme and it doesn't work, if I set it like this
const editorTheme = useMemo(() => {
return isDark ? 'ace/theme/ambiance' : 'ace/theme/chrome';
}, [isDark]);
theme={editorTheme}
it's not working, it just picks up the first theme in condition, how can I change it when toggling between dark and light modes of the app?