Clear method in view event handler temporarily clears data

When I call .clearLendingPrequalificationChecklist(). on view data, it clears the data, but if we add new data to the view table, old data comes back. What are we missing here?

clearLendingPrequalificationChecklist() is a method in your codebase so hard to say if it does something wrong or not.

In general, to update the stored entry for an entity in the view, you need to make sure that you return either effects().updateState(newState) to store updated state or effects().deleteState() to delete the state, from your view update handler methods.

1 Like

Ok, will try that out, thanks for the reply