Dirty Handling

Hey,

the action SetDirty seems only to be triggered in case of setting the dirty flag for an activity to true, but not to false. Setting the flag back to false happens for example for the action “save_done”. Which other actions are there that are setting the activity flag back to false?

Regards
Chrissi

Hello Chrissi,
Regarding the Activity/SET_DIRTY action, its primary function is indeed to set the dirty flag of an activity to true.

Typically, the process of resetting the dirty state to false adheres to standard practices. For instance, upon saving, any changes made during the activity are regarded as committed, thereby resetting the dirty flag. Internally, there are specific reducers and sagas that handle this process. Notably, the dirty flag is manually set to false in instances such as when creating a new data holder for an activity or upon successful saving, as you pointed out.

There’s more information regarding the dirty state on the form engine documentation:

Hey @christina-soft-reed,
is your initial question answered with the info and inks provided, or is there something left?