I'm trying to store these data until I get the other cards back.

So when I press the Previous button and comeback to the checkbox that I made, it will move the value by unchecking the box. However, I would like to keep the data with the checked boxes.
I also want to know about the LWC flow and how it's handling data when I press the Previous and Next button.
.html
<template>
<lightning-checkbox-group name="CheckboxGroup"
label="Check one"
required></lightning-checkbox-group>
<lightning-input type="checkbox" label="Type 0" data-id="checkbox" value="Type 0" onchange={handleInputVal1}></lightning-input>
<lightning-input type="checkbox" label="Type 1" data-id="checkbox" value="Type 1" onchange={handleInputVal2}></lightning-input>
<lightning-input type="checkbox" label="Type 2" data-id="checkbox" value="Type 2" onchange={handleInputVal2}></lightning-input>
</template>
.js
value = [];
userConditionsLWC2 = [];
handleInputVal1(e) {
// keeps the data
this.value = e.target ? e.target.value : "";
this.userConditionsLWC2 = [];
this.userConditionsLWC2.push(this.value);
this.omniApplyCallResp({ userConditionsLWC2: this.userConditionsLWC2 });
const checkboxList = this.template.querySelectorAll(
'[data-id^="checkbox"]'
);
for (const checkboxElement of checkboxList) {
checkboxElement.checked = false;
}
e.target.checked = true;
}
handleInputVal2(e) {
// deleting the data in flow ahead
this.value = e.target ? e.target.value : "";
this.userConditionsLWC2 = [];
this.userConditionsLWC2.push(this.value);
this.omniApplyCallResp({ userConditionsLWC2: this.userConditionsLWC2 });
const checkboxList = this.template.querySelectorAll(
'[data-id^="checkbox"]'
);
for (const checkboxElement of checkboxList) {
checkboxElement.checked = false;
}
e.target.checked = true;
}

