chore(examples): useCallback for useOnViewport handlers
This commit is contained in:
@@ -17,6 +17,7 @@ function useOnViewportChange({ onStart, onChange, onEnd }: UseOnViewportChangeOp
|
||||
}, [onStart]);
|
||||
|
||||
useEffect(() => {
|
||||
console.log('change onchange');
|
||||
store.setState({ onViewportChange: onChange });
|
||||
}, [onChange]);
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
.react-flow__connection-path {
|
||||
stroke: #b1b1b7;
|
||||
stroke-width: 1;
|
||||
fill: none;
|
||||
}
|
||||
|
||||
.react-flow__edge {
|
||||
|
||||
Reference in New Issue
Block a user