Skip to content

Commit

Permalink
Merge pull request #8716 from postor/record-ctx-provider-doc-fix
Browse files Browse the repository at this point in the history
fix doc for <RecordContextProvider> usage
  • Loading branch information
djhi authored Mar 8, 2023
2 parents 61188e9 + 94d0c2f commit 93b0cb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/useRecordContext.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const RecordFetcher = ({ id, resource, children }) => {
if (isLoading) return <p>Loading...</p>;
if (error) return <p>Error :(</p>;
return (
<RecordContextProvider record={data}>
<RecordContextProvider value={data}>
{children}
</RecordContextProvider>
);
Expand Down

0 comments on commit 93b0cb0

Please sign in to comment.