undoManager.stopCapturing() is not working in 14.0.0-1

Hey I am using this version 14.0.0-1 for undo redo for my state updates or some changes i want to stop capturing undo redo ? But in this version it’s not working why ?

This is an alpha release. Please use a stable one…