React 18 useTransition: managing side effects during interrupted renders
React 18 introduces concurrent rendering, allowing the useTransition hook to mark state updates as non-urgent. When a higher-priority update occurs, React may interrupt and discard the pending render of a transition to maintain UI responsiveness. While React internally handles the cancellation of the rendering process, the behavior of associated side effects