Completely reset components state and data - POSSIBLE?


#1

Is it possible to completely reset all data (vars, forms…) somehow by re-initing component?
Scenario: I have component that runs inside popup, component has lot of data (form with lot of inputs, selects, uploads, image edits, tabs…), user goes trough it by changing tabs and filling data, at last tab everything is synced with server and popup is closed. I would like to skip “putting everything in beginning state” (reset forms, change titles and warnings, reset data…).

Any help appreciated.