# Issue on CommandStack on refresh of the page

**URL:** <https://forum.bpmn.io/t/issue-on-commandstack-on-refresh-of-the-page/14884>\
**Category:** Developers\
**Created:** [June 24, 2025, 3:22pm UTC](https://forum.bpmn.io/t/issue-on-commandstack-on-refresh-of-the-page/14884 "2025-06-24T15:22:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![beg09](https://forum.bpmn.io/user_avatar/forum.bpmn.io/beg09/32/6345_2.png) [@beg09](https://forum.bpmn.io/u/beg09)\
**Post date:** [June 24, 2025, 3:22pm UTC](https://forum.bpmn.io/t/issue-on-commandstack-on-refresh-of-the-page/14884/1 "2025-06-24T15:22:27Z")

</div>

Hello team,

I have an application that saves coordinate data on the backend, and the app works very well.  
Now, we want to enable undo and redo functionality (we’ve already created the API), and we’d like this to persist even after a page refresh, since the data is stored in the database.

My question is: how can I refresh the diagram coordinates after an API call? Is there a way to do this, or what approach would you recommend?  
I want to be independent of commandStack because that is not possible to serialize and after refresh is cleared

Thanks so much!

---

<div class="post-metadata">

**Author:** ![beg09](https://forum.bpmn.io/user_avatar/forum.bpmn.io/beg09/32/6345_2.png) [@beg09](https://forum.bpmn.io/u/beg09)\
**Post date:** [June 27, 2025, 10:20am UTC](https://forum.bpmn.io/t/issue-on-commandstack-on-refresh-of-the-page/14884/2 "2025-06-27T10:20:06Z")

</div>

Fixed the issue by re-importing the diagram and re drawing the connections

---

<div class="post-metadata">

**Author:** ![system](https://forum.bpmn.io/uploads/default/original/2X/b/b534893973385c2d302b38572464112e4adae002.png) [@system](https://forum.bpmn.io/u/system)\
**Post date:** [July 4, 2025, 10:20am UTC](https://forum.bpmn.io/t/issue-on-commandstack-on-refresh-of-the-page/14884/3 "2025-07-04T10:20:32Z")

</div>

Closed on July 4, 2025, 10:20am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
