Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(graph): improve error handling in dispatch function
Add try-catch-finally blocks to ensure proper cleanup of persist timer even when applyActions throws an error. This maintains consistency between graph state updates and persistence scheduling. - Wrap graph state updates in try block - Add error logging and re-throw in catch block - Move timer cleanup and scheduling to finally block
- Loading branch information