mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-01 09:39:57 +08:00
### What problem does this PR solve? Feat: Use memo to wrap canvas nodes to improve fluency #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import { Handle, Position } from '@xyflow/react';
|
||||
|
||||
import React from 'react';
|
||||
import React, { memo } from 'react';
|
||||
import styles from './index.less';
|
||||
|
||||
const DEFAULT_HANDLE_STYLE = {
|
||||
@ -37,4 +37,4 @@ const CategorizeHandle = ({ top, right, id, children }: IProps) => {
|
||||
);
|
||||
};
|
||||
|
||||
export default CategorizeHandle;
|
||||
export default memo(CategorizeHandle);
|
||||
|
||||
Reference in New Issue
Block a user