Skip to content

Commit

Permalink
fix(useColorMode)!: enable disableTransition by default
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Apr 13, 2023
1 parent d150ca2 commit 5c82cf3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/core/useColorMode/index.ts
Expand Up @@ -83,7 +83,7 @@ export interface UseColorModeOptions<T extends string = BasicColorSchema> extend
* Disable transition on switch
*
* @see https://paco.me/writing/disable-theme-transitions
* @default false
* @default true
*/
disableTransition?: boolean
}
Expand Down Expand Up @@ -113,8 +113,7 @@ export function useColorMode<T extends string = BasicColorSchema>(
listenToStorageChanges = true,
storageRef,
emitAuto,
// TODO: switch to true in v10
disableTransition = false,
disableTransition = true,
} = options

const modes = {
Expand Down

0 comments on commit 5c82cf3

Please sign in to comment.