isar / isar/hive

When clear a list, saved list cleared also

Open
#1,091 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Dart
Stars
4.4k
Forks
449
PR merge metrics
No merged PRs in 30d

Description

**Question**
when i clear the list i put in hive. clearing the list in hive.
**Code sample**

![image](https://user-images.githubusercontent.com/65075121/195974044-a2648751-07f3-46f2-a2aa-96c2d36fdb44.png)

![image](https://user-images.githubusercontent.com/65075121/195974154-f53306d7-3e2d-411c-acd0-2219cd87e2a7.png)

when l close the page, l clear listForDb list. but because of this, the data base also changes, how can I prevent this?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported listForDb behavior described in the issue and compare clearing the in-memory list with the persisted Hive data shown in the screenshots. Determine the intended separation between the list and the saved database value; done means clearing the list no longer changes the stored data, with a regression test covering that scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.