Skip to content

Commit

Permalink
refactor: fix false-positive react/prop-types
Browse files Browse the repository at this point in the history
  • Loading branch information
ph-fritsche committed Sep 3, 2021
1 parent cb96733 commit c863484
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ export function CacheProvider(
{
dbDriverFactory = lazyIndexedDB,
children,
}: React.PropsWithChildren<{
}: {
children: React.ReactNode
dbDriverFactory?: DBDriverFactory
}>,
},
): React.ReactElement {
const cache = useRef<CacheContext['cache']>({}).current
const context: CacheContext = useMemo(() => ({cache, dbDriverFactory}), [cache, dbDriverFactory])
Expand Down

0 comments on commit c863484

Please sign in to comment.