Skip to content

Can't change theme on the fly #74

@AnnaRainier

Description

@AnnaRainier

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions