You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
export const useGraphConfig = createGraphConfig(config => {
/** renderKey是NODE1, 对应的React组件是 */
config.setNodeRender('NODE1', props => <Node1 {...props} />)
})
根据以上配置来render Node1组件,在拖动Node1的时候,一直发现Node1组件在render,但是Node1的props并没有变,而且我还设置了相同的key,也没有用。怎么防止这个re-render呢?
Beta Was this translation helpful? Give feedback.
All reactions