Skip to content

Commit 93b0cb0

Browse files
authored
Merge pull request #8716 from postor/record-ctx-provider-doc-fix
fix doc for <RecordContextProvider> usage
2 parents 61188e9 + 94d0c2f commit 93b0cb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/useRecordContext.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const RecordFetcher = ({ id, resource, children }) => {
7272
if (isLoading) return <p>Loading...</p>;
7373
if (error) return <p>Error :(</p>;
7474
return (
75-
<RecordContextProvider record={data}>
75+
<RecordContextProvider value={data}>
7676
{children}
7777
</RecordContextProvider>
7878
);

0 commit comments

Comments
 (0)