File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- import { useState , useCallback , useMemo } from 'react'
1
+ import { useState , useCallback , useMemo , useEffect } from 'react'
2
+ import { Laptop , Server } from 'lucide-react'
2
3
import { ANIMATION_STATES , TCP_IP_LAYERS } from './data'
3
4
import getPacketForStep , { type PacketStep } from './utils/getPacketForStep'
4
5
import getInfoText , { TOTAL_STEPS } from './utils/getInfoText'
@@ -8,7 +9,6 @@ import EncapsulatedPacket from './components/EncapsulatedPacket'
8
9
import ConnectionStatus from './components/ConnectionStatus'
9
10
import InfoPanel from './components/InfoPanel'
10
11
import ControlsPanel from './components/ControlsPanel'
11
- import { Laptop , Server } from 'lucide-react'
12
12
13
13
function App ( ) {
14
14
const [ activeTab , setActiveTab ] = useState < Tab > ( 'overview' )
@@ -91,7 +91,7 @@ function App() {
91
91
92
92
// When currentStep changes and playing, start next animation
93
93
// (or after handleStepForward)
94
- useMemo ( ( ) => {
94
+ useEffect ( ( ) => {
95
95
if (
96
96
( isPlaying || pendingStep ) &&
97
97
! currentPacket &&
You can’t perform that action at this time.
0 commit comments