Skip to content

Should be possible to restore changes on the store without committing them #11089

@ghulamghousdev

Description

@ghulamghousdev

Forum post

Hello,

I am currently implementing a feature to allow users to choose to remember previous "draft" changes after a page refresh. This is not meant to be persisted in a database, but locally before the user decides to save these changes. In this scenario, Bryntum will load our data (database) and then apply these pending changes. (local storage)

So far, I am saving the crudManager.changes as Json object in local storage, on page refresh I am applying them with crudManager.applyChangeset()

The problem is that after I have applied these changes, the crudmanager.changes object is empty and
I need a way to apply those previous changes, but still keep them as part of the crudManager.changes to accumulate them in the change tracking as the user interacts with the Gantt.

Is there a different method I can use for this?

Metadata

Metadata

Labels

feature requestforumIssues from forumlarge-accountReported by large customerresolvedFixed but not yet released (available in the nightly builds)

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions