diff --git a/packages/core/client/src/data-source/data-block/DataBlockRequestProvider.tsx b/packages/core/client/src/data-source/data-block/DataBlockRequestProvider.tsx index 497053bc01..5e3a87a630 100644 --- a/packages/core/client/src/data-source/data-block/DataBlockRequestProvider.tsx +++ b/packages/core/client/src/data-source/data-block/DataBlockRequestProvider.tsx @@ -96,7 +96,7 @@ export async function requestParentRecordData({ return res.data; } -export const BlockRequestProvider: FC = ({ children }) => { +export const BlockRequestProvider: FC = React.memo(({ children }) => { const props = useDataBlockProps(); const { action, @@ -155,7 +155,9 @@ export const BlockRequestProvider: FC = ({ children }) => { )} ); -}; +}); + +BlockRequestProvider.displayName = 'DataBlockRequestProvider'; export const useDataBlockRequest = (): UseRequestResult<{ data: T }> => { const context = useContext(BlockRequestContext);