isar / isar/hive

Stored list is not immutable

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

Description

I'm not sure if it's a bug, or if it is intended, but it's not working as I expected.

I would expect that all the objects in the Hive are immutable. Is this really a correct behavior, to be able to change the stored object without explicit Save in the Hive?

Scenario:
* I have a model that contains a list of numbers
* I store the model in the Hive
* I load the model from Hive, retrieved the list, and modify one element without saving it back to the Hive
* I load the model again, and the modified element in the list is there.

Contributor guide

No contributing guide indexed for this repository

Research direction

No file or test path is provided. Start by reproducing the reported Hive scenario with a Dart model containing a list: store it, load it, mutate one list element without saving, and load it again. Done means the intended behavior is established and the observed persistence of the unsaved mutation is either prevented or documented as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.