update readme

This commit is contained in:
Robert Soriano
2022-05-24 09:55:05 -07:00
parent 3b5e35ef68
commit 58b0165557
2 changed files with 16 additions and 1 deletions

View File

@@ -84,6 +84,6 @@ export function useClient(): TRPCClient<AppRouter> {
* @see https://github.com/trpc/trpc/discussions/1686
* @param initialValue
*/
export function useClientHeaders(initialValue: MaybeRef<Record<string, any>>) {
export function useClientHeaders(initialValue?: MaybeRef<Record<string, any>>) {
return useStorage('trpc-nuxt-header', initialValue || {})
}