DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
AI for Frontend Developers Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
AI for Frontend Developers
A junior developer implements the stop button as `setMessages(prev => prev.slice(0, -1)); controller.abort();`. What's the more correct behavior?
A
This is already correct
B
Only call controller.abort() to halt further generation; leave the already-streamed partial text visible, optionally with a 'stopped' indicator
C
Remove all messages in the conversation, not just the last one
D
Ignore the click entirely
Check Answer