Skip to content

Latest commit

 

History

History
178 lines (117 loc) · 4.91 KB

v2.0.1.mdx

File metadata and controls

178 lines (117 loc) · 4.91 KB
title description releaseUrl releaseDate version
Version 2.0.1
Explore the changelog for Chakra UI version 2.0.1. Learn about the latest features, bug fixes, and improvements.
May 17, 2022
2.0.1

Patch Changes

  • Updated dependencies

Patch Changes

  • 7eaf538a4 Thanks @segunadebayo! - Fix issue where checkbox doesn't reset the the form reset event is triggered

Patch Changes

  • #6030 17aeb7185 Thanks @RagOfJoes! - - Improve SSR for color mode by adding manager.get() in the default state

    • Add support disableTransitionOnChange option in ColorModeProvider and theme.config to control whether the transition of all elements should be temporarily disabled while the color mode changes.

    • Expose cookieStorageManagerSSR for users who prefer to manage color mode server-side. If you use this, there's no need for the ColorModeScript

    function App({ Component, pageProps }) {
      // get the `cookie` from each page `getServerSideProps` return value
      // Note: the implementation is up to you
      const manager = cookieStorageManagerSSR(pageProps.cookie)
      return (
        <ChakraProvider manager={manager}>
          <Component />
        </ChakraProvider>
      )
    }
  • #6035 b7bdbb482 Thanks @segunadebayo! - We now provide a way to customize the localStorage / cookie storage key

    import { createLocalStorageManager } from "@chakra-ui/react"
    
    const manager = createLocalStorageManager("my-key")
    
    // in root
    function App() {
      return <ChakraProvider colorModeManager={manager} />
    }
    
    // in script
    function Document() {
      return <ColorModeScript storageKey="my-key" />
    }
  • #6035 fb99cd7a8 Thanks @segunadebayo! - Fix inconsistent handling across provider and script

Patch Changes

  • Updated dependencies

Patch Changes

Patch Changes

  • Updated dependencies

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

  • Updated dependencies

Patch Changes

  • Updated dependencies

Patch Changes

  • Updated dependencies

Patch Changes

  • Updated dependencies

Patch Changes

  • Updated dependencies

Patch Changes

  • Updated dependencies

Patch Changes

  • Updated dependencies