Slice Provider

Wrap your app with the SliceProvider to enable SliceKit hooks and components.
import { SliceProvider } from "@slicekit/react"

function App() {
  return (
    <SliceProvider>
      <YourApp />
    </SliceProvider>
  )
}

Parameters

initCart
`ProductCart[] | undefined`
Initial cart state to be used by the hooks. If undefined, the cart will be taken from localStorage if present.

Wagmi config

Some hooks require a Wagmi config to be passed as param.
import { createConfig } from "@wagmi/core"
import { base } from "@wagmi/core/chains"

const config = createConfig({
  chains: [base],
  transports: {
    [base.id]: http(`https://mainnet.base.org`)
  }
})
Refer to the Wagmi documentation for more information.