Skip to content

useTheme function need more explanation #4455

@adrianrz

Description

@adrianrz

When try to use this example in my project

export type AppTheme = typeof myTheme;
export const useAppTheme = () => useTheme();

This not overwrite defaultTheme with myTheme, I investigate the source code of useTheme and I discover that have a theme parameter that not is in the example:

export const useAppTheme = () => useTheme(myTheme);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions