The team noticed that after a recent refactor, the activity feed panel started behaving unreliably during rapid user actions. We need to review the changes and find the reasons for the mismatch with the expected behavior.
channelId channel.channelId changes, a new list must be loaded and old items must not remain on screen during loading.Pin button must optimistically toggle the pinned field only for the selected item.pinned toggle request fails, the rollback must restore the actual previous state of the list without overwriting later successful changes.StrictMode in development mode.channelId="general".channelId="support".support channel, quickly click Pin for item s-1, then Pin for s-2.19.0.05.8.2jsx: react-jsxStrictMode in development; bugs must reproduce without relying on double effect invocationfeedApi.ts is deterministic: general responds slower than support, and togglePinned('support', 's-1') fails after a successful response for s-2Use line comments to explain the problem, its impact, the fix and how to test it.